comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
April 2008
motuwethfrsasuw
 123456 14
78910111213 15
14151617181920 16
21222324252627 17
282930     18
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  GetShortPathNameW issue with UNC path         


Author: Neo
Date: Apr 23, 2008 23:50

i all,
I am trying to convert a file path ( in UNC format) using
GetShortPathNameW API. But It fails, saying that

"The filename, directory name, or volume label syntax is incorrect."

Anybody knows what is issue here?

Here is the sample code

DWORD dw =0;
wstring m_UNCPath = L"\\\\?\\UNC\\server_ip\\ONTAP_ADMIN$\\vol\\vol0\
\home\\testdir4";

// here server_ip is my machine ip of intranet

long length = GetShortPathNameW(m_UNCPath.c_str(), NULL, 0);
DWORD dwerror = GetLastError();

// dwerror return "123" and length =0

length += 2;
wchar_t* buffer = new wchar_t[length];

dwerror= GetShortPathNameW(m_UNCPath.c_str(), buffer, length);

Note: I tried to create a file insame path using CreateFileW api and
things worked.
2 Comments
  MSDN version         


Author: Boris
Date: Apr 23, 2008 22:33

Hello,

Is there a way to determine which version of MSDN Library is installed (on
my system)?
Microsoft geniuses don't seem to provide this info.

Thanks,
Boris
4 Comments
  OEM Conference Mics - Chinese Conference Mics Manufacturer         


Author: blog140
Date: Apr 23, 2008 15:32

OEM Conference Mics - Chinese Conference Mics Manufacturer

Conference Microphone WebSite Link:
http://www.chinese-microphone.com/Conference-Microphones.html

China GuangZhou TianTuo Microphone Manufacturing Co., Ltd WebSite:
http://www.chinese-microphone.com/

Microphone Products are: Wireless Microphones, Conference Microphones,
Headset Microphones, and Lapel Microphones, interview microphones,
wired microphones, musical instrument microphones, drum microphones,
teaching microphones, recording microphones, computer's USB
microphones and microphone accessories and So on.

Medword Store: Olympus ME30W Digital Conference Microphone KitMedword
StoreMT Gab ForumThe Medword ListNavigate MedwordSearch
Medwordmedwordmedword.com O http://www.chinese-microphone.com/Conference-Microphones...
Show full article (4.67Kb)
no comments
  China Handheld Mics - Wholesale Handheld Mics Manufacturer         


Author: blog140
Date: Apr 23, 2008 15:32

China Handheld Mics - Wholesale Handheld Mics Manufacturer

Handheld Microphone WebSite Link:
http://www.chinese-microphone.com/Handheld-Microphones.html

China GuangZhou TianTuo Microphone Manufacturing Co., Ltd WebSite:
http://www.chinese-microphone.com/

Microphone Products are: Wireless Microphones, Conference Microphones,
Headset Microphones, and Lapel Microphones, interview microphones,
wired microphones, musical instrument microphones, drum microphones,
teaching microphones, recording microphones, computer's USB
microphones and microphone accessories and So on.

Wireless Microphone Handheld Microphone Lapel Microphone Headset
Microphones from Radios4You.com www.radios4you.com AM/FM RADIOS
ANTENNAS CAMCORDER Microphones EMERGENCY Radio/Flashlight iP
http://www...
Show full article (5.55Kb)
no comments
  Handheld Mics - OEM Handheld Mics Manufacturer         


Author: blog025
Date: Apr 23, 2008 12:41

Handheld Mics - OEM Handheld Mics Manufacturer

Handheld Microphone WebSite Link:
http://www.chinese-microphone.com/Handheld-Microphones.html

China GuangZhou TianTuo Microphone Manufacturing Co., Ltd WebSite:
http://www.chinese-microphone.com/

Microphone Products are: Wireless Microphones, Conference Microphones,
Headset Microphones, and Lapel Microphones, interview microphones,
wired microphones, musical instrument microphones, drum microphones,
teaching microphones, recording microphones, computer's USB
microphones and microphone accessories and So on.

Maplin > VHF Handheld Radio Mic System Home Basket Login and Register
Contact Us Help A to Z Cables Communication Components Computing Home
& Car Music Power Sat Nav Tools TV & Satellite Home ...
Show full article (3.35Kb)
no comments
  OEM Mics - OEM OEM Mics Manufacturer         


Author: blog025
Date: Apr 23, 2008 12:41

OEM Mics - OEM OEM Mics Manufacturer

OEM Microphone WebSite Link:
http://www.chinese-microphone.com/OEM-MIC.html

China GuangZhou TianTuo Microphone Manufacturing Co., Ltd WebSite:
http://www.chinese-microphone.com/

Microphone Products are: Wireless Microphones, Conference Microphones,
Headset Microphones, and Lapel Microphones, interview microphones,
wired microphones, musical instrument microphones, drum microphones,
teaching microphones, recording microphones, computer's USB
microphones and microphone accessories and So on.

For OEM's Free Web Hosting Provider - Web Hosting - E-commerce - High
Speed Internet - Free Web Page Search the Web Myefforts are dedicated
to my "Source of Inspiration..." [ BASICS ] [ Architecture...
Show full article (13.95Kb)
no comments
  RTS Serial         


Author: simontuohy
Date: Apr 23, 2008 08:45

Hi

I am trying to write a program to read the RTS line on a serial cable.
I am using windows 2000 and Visual Studio 2005. How would I go about
doing this. I am a relative Noobie with C++
thanks

Simon
3 Comments
  How to convert between double and __int64         


Author: Angus
Date: Apr 23, 2008 06:57

Hello

I need to send a double across a network connection and thought
easiest way is to convert to a 64 bit number - ie __int64 and then
send that.

However if I do this:

double d = 3.3;
__int64 i64;
i64 = (__int64)d;

I lose the floating point.

I assume floating point numbers can be stored in this way?

I also need to be able to re-assemble the double at the other end.

Angus
1 Comment
  regarding System.Environment.OSVersion         


Author: shivaraj
Date: Apr 23, 2008 05:26

Hi, I am new to win32 programming. I wanted to fetch the OS version
through VC++ code. I found something like System.Environment.OSVersion
but not getting how to use it.

For System, Environment its throwing undeclared identifier. What
header i should be adding to get these working?

Regards,
Shivaraj
2 Comments
  DllMain and the 'Singleton' pattern         


Author: David Shen
Date: Apr 23, 2008 04:12

Hi,

Whenever a dll is loaded into a process, the 'DllMain' will be called. I
want to know that if there's a global variable of an instance of a
class, say class CSingle, will the instantiation of this variable be
guaranteed to be performed once? E.g.

CSingle _single;

BOOL WINAPI DllMain(...)
{
...
}

Will the constructor of _single be called only once, no matter how many
times this dll being loaded?

Because in .Net framework, the CLR loader would make sure that the
constructor of a 'static' member is called only once. This made easy to
implement the 'Singleton' pattern.

Thanks,
David
4 Comments
1 2