|
how exactly to use CArchive?An example would help.
also,how to use fstream in MFC?
thanx.
|
|
|
|
|
When someone asks for a code example on the MS newsgroups, I usually point them to CodeProject. But you're already here! This website is rife with example code.
Scot Brennecke
Software Developer
VC++ MVP
|
|
|
|
|
See my tutorials on serialization.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi,
I've just joined a project for a temporary period and they're using Developer Studio 4.2. Can anyone tell me what updates are available for this version as there seems to be a couple of bugs. For example, in the resource editor, if you try copying and pasting areas of a bitmap (for a treelist for example) between bitmap images, the pasted image is corrupted (mirrored and some other corruption).
Thanks
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
|
|
|
|
|
To my knowledge, MS did not issue service packs for DevStudio back then. The only updates that are available are later versions of DevStudio. IMO, VS 6.0 is the best thing they've produced yet. Unfortunately, you can't even get that from MS anymore, since they're trying to shove "dot net" down our throats.
Scot Brennecke
Software Developer
VC++ MVP
|
|
|
|
|
I've used VC 6.0 extensively but I actually like 4.2 now I'm using it. It's very lightweight compared to 6.0, the help is much faster - just uses a primitive window to display the help and examples rather than 6.0's MSDN type interface. Builds are really quick as well!
There are some updates available for 4.2 but M$ being what they are, of the several available, one of the (apparently core) updates is unavailable from their site. I was just hoping someone might know of a bugfix for the resource editor amongst other things. Also, the updates as listed by M$ aren't exactly cleary described.
For anyone interested, the updates are here:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q156934
One of the ones I think I need is MSDEV42B.EXE which isn't available unfortunately.
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
|
|
|
|
|
I searched Google for the exe name and found a link from a page to the microsoft ftp site. I was able to download the file, so it should work for you also:
MSDEV42B.EXE
Roger Stewart
"I Owe, I Owe, it's off to work I go..."
|
|
|
|
|
Thanks for that, I just went and got it. Wonder why all the others were working before and that one wasn't?
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
|
|
|
|
|
what I am basically trying to do is: when I move the mouse over my transparent dialog with
controls, the window should become opaque and when I move the mouse out of the window, the
dialog should become transparent again.
So far I have succeeded in handling only the event WM_MOUSEMOVE and I couldn't do the same
with WM_MOUSELEAVE.
I want to do somethink like the transparent window of Miranda IRC but I can't find yet any
articles about mouse movement tracking (over dialogs with controls on them).
How can I do that?
Best regards,
H.
|
|
|
|
|
|
|
Hi,
I need to double buffer a Window's window. SImply, to let any window within my process draw in a back buffer and then to swap the back buffer with the front buffer. Any hints?
|
|
|
|
|
There is an article here on CP by Keith Rule that should help
http://www.codeproject.com/gdi/flickerfree.asp
|
|
|
|
|
Hi.
I've just started to look into GDI+. Everything works fine except the infamous function GdiplusShutdown() . The linker gives this message:
TegeTest.obj : error LNK2001: unresolved external symbol _GdiplusShutdown@8
Debug/TegneTest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I known this problem has been discussed some time ago, but has anyone found a remedy lately? I'm using Windows 98 and have downloaded the full SDK.
In practice, is there a problem? It is always called at app. exit, in which case Windows cleans up everything anyway. Or...?
Regards, Haakon S.
|
|
|
|
|
You're using the wrong definition of ULONG_PTR. It should be:
typedef unsigned long ULONG_PTR;
--Mike--
Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
On the spot, that was the fix!!
Thanks! Takk! Merci!
|
|
|
|
|
I used SystemParameterInfo(SPI_SETWHEELSCROLLINES,......) to chanage the scroll line and it works well.
But in Microsoft Word, it does not work.
Why???
Is this a limitation? Or anyone have any ideas???
|
|
|
|
|
i wrote an application which check the new file arrival in an FTP ..and i used the concept to check the Files Currently and store the Date of the rescent file.and check there is any new files in the next time..
my problem is:
CTime oTime;
GetLastWriteTime(oTime);
but the oTime.GetSecond() returns ZEROOOO always..!! what s the reason..??
ANY IDEAS????
Renjith-CPian.
|
|
|
|
|
check the GetLastWriteTime return value
MSDN:
"Nonzero if successful; 0 if unsuccessful. GetLastWriteTime returns 0 only if FindNextFile has never been called on this CFileFind object."
I'd bet you miss the FindNextFill call
|
|
|
|
|
Yo Yo Maaann...
Everything is OK here ..but i can retrieve up to the minute..but not seconds and milliseconds...
Renjith-CPian.
|
|
|
|
|
hi .. im making a database prog in vc.. through odbc using microsoft access as a back end
but whenever i try to add record i get a message dat
record set is read only
plz hlp me out
looking forward from all the gurus of code
|
|
|
|
|
What type of cursor do you use when you open DB? It shouldn't be forwardonly .
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
how to get windows message hnadler & how to set hooks for mouse and keyboard
strokes in MFC?
|
|
|
|
|
Check this:
http://www.codeproject.com/dll/#Hooks
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
can u please tell how to get handle for all keyboard events (ie how to get message handler for keyboard events & mouse events)
|
|
|
|