|
HANDLE is unsigned long (DWORD). It is like a pointer because it is unique, but it is hashed to some pointed in memory. Windows manages the memory and this can be shifted and moved around to prevent memory fragmentation, but the HANDLE remains the same.
J.
----------------------------
|
|
|
|
|
I have tryed to make a little program, it should load its String from a XML file created like this.
<br />
<DATABASE version="1"><br />
<ACCOUNT id="98">FreeGeG</ACCOUNT><br />
</DATABASE><br />
how do i load that file into my Program, so i can use them at Strings?
Thanks
|
|
|
|
|
You could use Xerces, XML4C or a class from here.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
At First Objects[^] you can get a fine little XML parser for free. Only the extended version consts money.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
I have an application in C++ (VC6.0 SP5 Win 2K) which runs fine in Debug and crashes in Release.
In the output debug window, when running the app in the IDE, I get the following message "Invalid Cache depth".
Anybody has a clue?
Thanks to whoever has!
|
|
|
|
|
I don't know about the error, but you might want to take a look at XCrashReport - Exception Handling and Crash Reporting by Hans Dietrich. It covers debugging release mode applications.
|
|
|
|
|
I did read his serie of articles.
Unfortunately the bug seems to appear in the MFC dll, so nothing I can do there to trace some code. And the stack does not include any of my functions.
There is also a very good article called Surving the release version, but I still have not found anything useful there either.
Thanks!
|
|
|
|
|
Found it!
I was simply using the index -1 in a std::vector... not a very good way to make your program work (and it does screw up your stack )!
I wish the STL had some ASSERTs like there are in MFC though!
|
|
|
|
|
hi,
i need to print cstring data to printer with out showing printdialog and printpreview i.e rawly print the data to the printer. any one help to me
thanks in advance
Murali.M
|
|
|
|
|
Try LPCTSTR operator witch overloaded by CString
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
|
Hi!
I need some help. I need to include milliseconds into my timestamp and I don't know how to do.
For Example:
12:10:47:123
If you even know how to get microseconds, that is also welcome
Thankful for your help,
|
|
|
|
|
Look at QueryPerformanceCounter() for high-precision timings.
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.3 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Assuming that you need clock time rather than duration:
The SYSTEMTIME structure has a wMilliseconds member.
If you need even more resolution you could consider using GetSystemTimeAsFileTime which returns a FILETIME structure. This has a resolution of 0.1 microseconds.
If you need a duration - time elapsed between two points - follow Taka's suggestion.
|
|
|
|
|
According to the documentation, GetSystemTimeAsFileTime converts SYSTEMTIME in FILETIME format, i.e. the higher resolution is not real.
|
|
|
|
|
In Visual Studio 6, is it possible to remove a file from a project using a macro (DSM)?
Project.AddFile doesn't seem to have an inverse, which is odd, and annoying.
|
|
|
|
|
Simply highlight (select) it's name on the File View panel and press Del. Watch out, it does not even ask for confirmation!
|
|
|
|
|
I thought of that, but I can't figure out how to select it in the file view. I tried recording it as a macro but all it gives me is 'ExecuteCommand "Delete"' which isn't guaranteed to work.
Is there a way to interact more with the framework?
|
|
|
|
|
How can I prevent characters from being entered into control while using WM_KEYUP, WM_KEYDOWN, WM_CHAR?
I have to handle these messages inside WndProc() but only allow certain characters?
Thanks
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
simply subclass CEdit class and then override these evernts
|
|
|
|
|
How can i disable/enable a netcard with program! thank you!!
|
|
|
|
|
Check out MSDN.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/device_management_functions.asp
Kuphryn
|
|
|
|
|
have always used these classes with SOCK_STREAM option ,but i am not able to use these with SOCK_DGRAM option.
I want to broadcast a message to multiple ip's
on sender end i am doing
CSocket s;
s.Create(0,SOCK_DGRAM);
CString str="This is UDP";
s.SendTo(str,str.GetLength(),7000,"127.0.0.1");
CString strServerName="127.0.0.1";
CString strPort=7000;
CSocket s;
s.Create(0,SOCK_DGRAM);
s.RecieveFrom(pBuff,30,strServerName,strPort);
but no packet recieves , i might be missing some steps can any body help...
No Worries!
|
|
|
|
|
ur using multicast udp right?
forget it
nearly all routers on the internet block multicast udp datagrams
"there is no spoon" biz stuff about me
|
|
|
|
|
can u explain it little bit further , actually i want to broadcast bulk video data to multiple client , that is video broadcasting , but at the same time i want that i dont have to send it one by one to each client , as it will largely consume bandwidth.
can UDP make it possible to broadcast a message to multiple destinations , using only one Send ,if YES can u expain it , forget about internet i can try it atleast on LAN.Some code would be really helpful.
thanx...
No Worries!
|
|
|
|