Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / [c++ winAPI] Dialogbox and error...

Author
Message
Age Piranha
22
Years of Service
User Offline
Joined: 27th Nov 2003
Location: Paris
Posted: 1st Dec 2003 22:44
Hi evreybody, sorry if I don't speak a good english...

I've created a dll with c++ (dev c++) using winAPI to do a dialog box... I had no problem... I test my dll with a c++ program, no problem...
I use my dll with my db pro exe, no problem... I quit my exe: problem; I have a message type "xxx cause a fatal eror at the module xxx..." (in a message box, and in french, so sorry for the translation)
This error occures only if i call my function wich use a dialogbox, not if i call other dll function...
I just want to know why i have this error, and i post here because i know some guy use winapi's function in their dll (Rob K...)

Thank you

Sublimons La Beauté, but you can't understand
www.pirasite.fr.st , if you speak french
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 1st Dec 2003 22:51
Without code, we can only guess. Can you give us a cut-down version? Or describe what you are doing in your code?
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 1st Dec 2003 22:53
Possible you are using a dialog box that requires a callback that isn't setup or exits incorrectly.


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
Age Piranha
22
Years of Service
User Offline
Joined: 27th Nov 2003
Location: Paris
Posted: 2nd Dec 2003 19:46
ok, this is the c++ code my dll...)
in file header.h:


in file resource.rc


in file main.cpp


I don't understand why I have this problem...

Sublimons La Beauté, but you can't understand
www.pirasite.fr.st , if you speak french
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 2nd Dec 2003 19:51
I suspect the message polling routine needs a valid handle (ie DBPro's one). You will need to include the core.h to use it (and setup the appropriate pointers).


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 2nd Dec 2003 20:33
I always knew C++ was "Chinese" but I never saw "french chinese" until now!
LOL

erm, sorry...
<quickly exits>

-RUST-

Login to post a reply

Server time is: 2026-07-26 20:14:39
Your offset time is: 2026-07-26 20:14:39