Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exe files Pin
HackerBoy30-Dec-03 10:35
HackerBoy30-Dec-03 10:35 
GeneralRe: Exe files Pin
Roger Wright30-Dec-03 11:00
professionalRoger Wright30-Dec-03 11:00 
GeneralRe: Exe files Pin
Niall Barr30-Dec-03 11:28
professionalNiall Barr30-Dec-03 11:28 
GeneralRe: Exe files Pin
Michael P Butler30-Dec-03 8:50
Michael P Butler30-Dec-03 8:50 
GeneralVisual C++ .NET and bug with warnings Pin
Mendicant30-Dec-03 6:37
Mendicant30-Dec-03 6:37 
GeneralRe: Visual C++ .NET and bug with warnings Pin
Michael Dunn30-Dec-03 6:49
sitebuilderMichael Dunn30-Dec-03 6:49 
GeneralRe: Visual C++ .NET and bug with warnings Pin
Orhun Birsoy30-Dec-03 10:06
Orhun Birsoy30-Dec-03 10:06 
GeneralDLL works in Win95/NT/2k, but not XP Pin
TClegg30-Dec-03 6:27
TClegg30-Dec-03 6:27 
Hi,

I've created a DLL in VC++ 6. The DLL works fine in Win95/98, NT4, 2000 but not in XP. XP for some reason gives "Access violation at address ........ in module <dll>." errors.

The first time I was getting this message, I was linking with mmsystem.lib (for the timeGetTime function). I checked out the DLL using Dependency Walker (depends.exe). On Win2k it pulled up just fine. Under XP, it said "Warning: at least one module has an unresolved import due to a missing export function in a delay-load dependent module." Under MPR.DLL, it appeared to be missing the WNetRestoreConnectionA function (I'm not even using this function in my DLL -- only the timeGetTime function). I checked the mpr.dll version on my win2k machine (the one that I'm coding on) versus the version on the XP Pro test machine. They were different (duh -- different versions of Windows).

I resolved this problem by using the LoadLibrary and GetProcAddress functions with the WINMM.DLL. When I tried to run the program calling the DLL on the XP machine, I got the error "Access violation at address 77C3F081 in module 'MSVCRT.DLL'. Read of address 00000000."

I'm using the <string> functions (sprintf, strncmp, etc.). I included the msvcrt.lib library, but decided to try building the DLL with the libc.lib library. Finally, I got the error message "Access violation at address 100026C8 in module 'CPUID.DLL'. Read of address 00000000." The DLL "CPUID.DLL" is the DLL that I'm building.

From my limited knowledge, I believe that the "Read of address 00000000" message means that the function didn't get loaded at all.

What can I do to fix this? This is the first time I've run into this problem (working on all versions except one -- XP).

Thank you in advanced for your help,

Tim Clegg
GeneralRe: DLL works in Win95/NT/2k, but not XP Pin
Jörgen Sigvardsson30-Dec-03 6:38
Jörgen Sigvardsson30-Dec-03 6:38 
GeneralRe: DLL works in Win95/NT/2k, but not XP Pin
TClegg30-Dec-03 7:05
TClegg30-Dec-03 7:05 
GeneralRe: DLL works in Win95/NT/2k, but not XP Pin
Jörgen Sigvardsson30-Dec-03 7:28
Jörgen Sigvardsson30-Dec-03 7:28 
GeneralA VB like IDE Pin
Jagadeesh VN30-Dec-03 6:05
Jagadeesh VN30-Dec-03 6:05 
GeneralRe: A VB like IDE Pin
Stefan Pedersen30-Dec-03 6:44
Stefan Pedersen30-Dec-03 6:44 
GeneralRe: A VB like IDE Pin
Jagadeesh VN30-Dec-03 6:53
Jagadeesh VN30-Dec-03 6:53 
GeneralToolbar Button Enable/Disable Pin
jdgonko30-Dec-03 5:49
jdgonko30-Dec-03 5:49 
GeneralRe: Toolbar Button Enable/Disable Pin
Maximilien30-Dec-03 6:00
Maximilien30-Dec-03 6:00 
GeneralRe: Toolbar Button Enable/Disable Pin
jdgonko30-Dec-03 8:02
jdgonko30-Dec-03 8:02 
GeneralRe: Toolbar Button Enable/Disable Pin
jdgonko30-Dec-03 11:12
jdgonko30-Dec-03 11:12 
Generalsending long string to Printer Pin
pnpfriend30-Dec-03 4:50
pnpfriend30-Dec-03 4:50 
GeneralRe: sending long string to Printer Pin
Roger Allen1-Jan-04 23:55
Roger Allen1-Jan-04 23:55 
GeneralSHLoadInProc() Pin
Rickard Andersson2030-Dec-03 3:39
Rickard Andersson2030-Dec-03 3:39 
GeneralDisablign Flat-Menus in XP for a specific App Pin
ohadp30-Dec-03 3:18
ohadp30-Dec-03 3:18 
Questionhow to beautify a button in a dialog? Pin
yunhe30-Dec-03 2:54
yunhe30-Dec-03 2:54 
AnswerRe: how to beautify a button in a dialog? Pin
Anand Paranjpe30-Dec-03 3:42
Anand Paranjpe30-Dec-03 3:42 
GeneralB&amp;W BMP to RLE Pin
kiyoko30-Dec-03 1:44
kiyoko30-Dec-03 1:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.