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 / Using DLL with Windows 2K : inputbox commands failled... HELP PLZ !!!

Author
Message
Pyre
23
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: France
Posted: 13th Oct 2003 21:39
So strange...
Do you know the DarkMagic Dll ? It used to work on my computer, running with win98... Now that I use Win2k, the Inputbox and pathrequest fonctions does not return the good strings. When I call them, I can see and use the box, but the value return is not good, nothing for pathrequest, and a strange string for input box...

Does someone know what to do about it ?

I'm just trying to find a way to get a path choose by the user, so that's why I was using darkmagic... I think I could directly use windows DLLs, but don't know how to do that... If someone can help me to find a way to get an input in a msgbox or something, plz help !!! Thx !!!

Pyre

PS: and I also have a small problem with Table string in DLLs : I use Dev-C++, but don't know how to implement the table string... I created the .rc file with notepad, copying it from net sources, then I did : project-->add to project in Dev-C++, and then I compiled, but it still does not work... params problem says DbPro compiler...
Pyre
23
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: France
Posted: 13th Oct 2003 22:46
Well no one seems to care... Or maybe no one knows about it...
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 13th Oct 2003 22:51
Never heard about it...
Cant help with Dev C either...


Avatar & Logo by Indi. Insert witty comment here...
heartbone
23
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 13th Oct 2003 22:55
It seems that the DLL call that works in 9X and XP dosen't work for
me in 2K, the call to get the desktop size.

So I guess that some of the DLLs were in a state of flux during OS development.

You probably need a Win2K expert. Or do like me, make your system behave differently on Win2K (i.e. build your own routine to use in Win2K).

The more you see, the more you know.
The more you know, the more you see.
Pyre
23
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: France
Posted: 13th Oct 2003 23:20
Thanks for answering !!
I see... So I have to look in MSDN to see how it works in win2K... quite a long searching time... Maybe I should change to XP (back to the primitive!!....) . Any idea about how to get the informations of how win2k works with it ?

And no one know about string tables ? (lol sorry for asking so much questions...)

thanks
Pyre
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th Oct 2003 23:35
Post your string tables and let us see - it usually means you got something wrong when defining them
Pyre
23
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: France
Posted: 13th Oct 2003 23:40
Sorry for multi-posting :
I found something interesting, in MSDN, but it took so long to find :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/CommonDialogBoxLibrary/AboutCommonDialogBoxes/OpenandSaveAsDialogBoxes.asp

But... lol... so hard... It deals with structures, I don't know how to use that in Dbpro (and I don't think I can...)

Quote: "You create and display an Open dialog box by initializing an OPENFILENAME structure and passing the structure to the GetOpenFileName function.
"


Well well well... As someone done this before?
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 14th Oct 2003 00:47
Yes, it my GetResource plug-in


Avatar & Logo by Indi. Insert witty comment here...
Pyre
23
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: France
Posted: 14th Oct 2003 09:59
Thanks for helping TheCodingArea, but I don't see how your GetResource plug-in can be useful in this case... This plug-in seems to be useful to get some informations from the computer... And what I need is to create a structure and pass it to a DLL function...
The structure look like this on MSDN :


And that's what I'd like to create... And I don't know how to do this... If your plugin can do this, can you explain me how plz, coz I didn't understand...
Thanks
Pyre
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 14th Oct 2003 11:07
Its easiest if you look at the example of getopenfilename. You pass the parameters that are needed and the routine fills in the OPEFILENAME structure which then calls the API.


Avatar & Logo by Indi. Insert witty comment here...
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 14th Oct 2003 20:31
I might having something which would help

However, if you want to know what structures should look like in DarkBASIC, get the Visual Basic WinAPI tool which lists type equivilents in Visual Basic, a language very close to VB. The only thing to note is that "LONG" and "INTEGER" in VB are both equivilent to "INTEGER" in DB.

Login to post a reply

Server time is: 2026-07-28 07:09:05
Your offset time is: 2026-07-28 07:09:05