Click here to Skip to main content
15,878,809 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionProblems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien10-Mar-11 21:36
Ole Morten Heien10-Mar-11 21:36 
AnswerRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Richard MacCutchan10-Mar-11 22:48
mveRichard MacCutchan10-Mar-11 22:48 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien10-Mar-11 22:55
Ole Morten Heien10-Mar-11 22:55 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Richard MacCutchan10-Mar-11 23:46
mveRichard MacCutchan10-Mar-11 23:46 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien11-Mar-11 0:13
Ole Morten Heien11-Mar-11 0:13 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Richard MacCutchan11-Mar-11 0:19
mveRichard MacCutchan11-Mar-11 0:19 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien11-Mar-11 0:37
Ole Morten Heien11-Mar-11 0:37 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
John Schroedl11-Mar-11 3:22
professionalJohn Schroedl11-Mar-11 3:22 
Some suggestions:

* Try loading your DLL in Depends (from the Windows SDK) on XP. That will show you if there's a dependent DLL that's not preset on XP.

* Run fuslogvw.exe (part of the .NET SDK) and look for entries related to your Clarion app. It's possible that the .NET loader (fusion) is logging a more meaningful error when your assembly (DLL) is loaded.

* Check the OS event viewer logs. I've had stack traces show up in there sometimes when things aren't loading.

* Try writing a simple Win32 C++ app which loads your DLL and calls a dummy entry point to be sure that it's loadable *at all* on that OS. If not, it's probably a dependency issue like I mentioned above. If it's loadable then clearly it's an interaction with the Clarion app.

* Load your DLL project in dev studio and set the Clarion exe as the debug exe and check the boxes to break for All exceptions under Debug > Exceptions... when the load fails, is there any first-chance excetion triggered preceding the failure? (this one's a long-shot)

* Try using Procmon from sysinternals.com and monitor disk activity. Set the filter to include only you exe process name to remove lots of unrelated output. See if there are failures reported before the DLL load fails.

* Does your exported function happen to call code from another C# assembly you've created? If so, the related assembly may not be getting located properly as .NET searches in the .exe directory, not in the C++ DLL's directory. The first function using a type from the C# assembly can fail unless you've handled the AppDomain.AssemblyResolve event.

Good luck,
John

ps. I used Clarion back in 1990 or so...was DOS-based then. Wonder if its the same thing.
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien11-Mar-11 3:32
Ole Morten Heien11-Mar-11 3:32 
QuestionContextMenuStrip Pin
Milton N10-Mar-11 15:50
Milton N10-Mar-11 15:50 
QuestionCreating XML file from C++/CLI code [modified] Pin
pix_programmer10-Mar-11 0:56
pix_programmer10-Mar-11 0:56 
AnswerRe: Creating XML file from C++/CLI code Pin
Richard MacCutchan10-Mar-11 3:35
mveRichard MacCutchan10-Mar-11 3:35 
AnswerRe: Creating XML file from C++/CLI code Pin
Ger Hayden10-Mar-11 9:25
Ger Hayden10-Mar-11 9:25 
QuestionRe: Creating XML file from C++/CLI code Pin
pix_programmer10-Mar-11 23:07
pix_programmer10-Mar-11 23:07 
AnswerRe: Creating XML file from C++/CLI code Pin
Ger Hayden11-Mar-11 8:11
Ger Hayden11-Mar-11 8:11 
Questionget client's screen size Pin
fzerd9-Mar-11 20:08
fzerd9-Mar-11 20:08 
AnswerRe: get client's screen size Pin
Richard MacCutchan9-Mar-11 22:21
mveRichard MacCutchan9-Mar-11 22:21 
AnswerRe: get client's screen size Pin
John Schroedl10-Mar-11 3:31
professionalJohn Schroedl10-Mar-11 3:31 
GeneralRe: get client's screen size Pin
fzerd10-Mar-11 4:26
fzerd10-Mar-11 4:26 
GeneralRe: get client's screen size Pin
John Schroedl10-Mar-11 5:17
professionalJohn Schroedl10-Mar-11 5:17 
GeneralRe: get client's screen size Pin
fzerd10-Mar-11 5:34
fzerd10-Mar-11 5:34 
GeneralRe: get client's screen size Pin
John Schroedl10-Mar-11 8:15
professionalJohn Schroedl10-Mar-11 8:15 
GeneralRe: get client's screen size Pin
Richard MacCutchan10-Mar-11 5:34
mveRichard MacCutchan10-Mar-11 5:34 
GeneralRe: get client's screen size Pin
fzerd10-Mar-11 6:01
fzerd10-Mar-11 6:01 
GeneralRe: get client's screen size Pin
Richard MacCutchan10-Mar-11 10:02
mveRichard MacCutchan10-Mar-11 10:02 

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.