|
Hi
Thanks for replying
your link i went through was very informative.
thanks again,
regards
pradish
|
|
|
|
|
How to make a toolbar ctrl undockable in a dialog?
It's better if the toolbar is also resizable.
-- modified at 0:34 Tuesday 13th December, 2005
|
|
|
|
|
LoadLibrary of my DLL fails in Windows 2000 with error 127(The specified procedure could not be found.). Dependency walker showed that _vsnwprintf is missing in ntdll.dll on windows 2000. Google search suggested that I use StringCchVPrintfW instead and link to strsafe.lib statically. But I see that strsafe library inturn uses _vsnwprintf to implement StringCchVPrintfW.
Anyone knows what can be done at this point to resolve the problem of using _vsnwprintf on Windows 2000?
thanks!
|
|
|
|
|
I think it is in MSVCRT.DLL
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Hello everyone!
Does anyone know how to use gotoxy() functions and such? I tried downloading a code for a game, but it'll give me errors when trying it on GCC! I tried making my own game with these functions, but it still tells me it doesn't exist... I don't want to use Windows-only console functions, I know how to use those, but I want to be cross-platform... Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
|
just for the correction :
conio.h exists on Microsoft plateform, but not gotoxy() which is - as you said - implemented by borland...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
Kixdemp wrote: Does anyone know how to use gotoxy() functions and such?
Use SetConsoleCursorPosition() instead.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hi,
if you are doing it on linux use the "curses.h" and you need to go to the screen mode from the text mode and execute in that mode ,but remember when you come out of it set it back to text mode ,posibly thats what they also do in game programming .
Regards
Farpointer
-- modified at 13:21 Tuesday 13th December, 2005
|
|
|
|
|
|
Is there a way to enumerate all of the DLL's that are loaded by an executable? I have an executable that loads a DLL that I wrote and I want to get a resource from within that DLL. Just like the 'Dependency Walker' that came with MSVC++6 does...
When I use LoadLibrary() on the executable file itself, it can't find the resource, nor get any address to functions within it using GetProcAddress(). I'm assuming the LoadLibrary function doesn't load the DLL's, even if they are linked into the executable at compile time (with an import library).
I want to be able to get a resource from this DLL, but I only have the executable to deal with and so I won't know where, or which version of the DLL is being used by the executable.
Thanks,
Tom
|
|
|
|
|
|
Thanks, this looks to be similiar to the EnumProcesses(), OpenProcess(), EnumProcessModules(), type of functions I have found since I posted.
However, in all cases, these functions need the process to be running to get a PID. Is there any way to figure out this information without having the process running? I don't want to run it, only want to examine it...
Thanks,
|
|
|
|
|
Gunn317 wrote: Is there any way to figure out this information without having the process running? I don't want to run it, only want to examine it...
Nothing comes to mind as of right away except for starting the suspended process and than grabbing his modules but if you'll figure out a better solution could you please tell me how to do it ?
--------------------------------
Human stupidity is infinite.
|
|
|
|
|
Well, I think I solved my original problem and so now I don't even need to have a DLL.
What I was trying to do have an .exe use a DLL that just contained a version info resource so I could determine what version of our libraries the .exe was built with. Just using LoadLibrary() on the .exe wouldn't give me any info on the resource, I guess because the DLL does not get loaded; only when it is executed. So I wanted to figure a way to find all the DLL's, search for my version DLL, use LoadLibrary() on it, then get the version resource...whew...
What I have finally figured out is that you can export functions from a .exe! So, I created a header file that the .exe includes (indirectly, by other includes, so it will *always* be included) that exports a function. Then, I can call LoadLibrary() on the .exe, use GetProcAddress() to get a pointer to the exported function, then call it to determine the version, walla! And *much* simpler...
See my following post showing the .h:
http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=1304933&df=100&msg=1304933#xx1304767xx
Thanks for your comments!
|
|
|
|
|
Hello everyone!
Can anyone PLEASE help me? Look:
http://sulfurmidis.com/mazzee.zip
OK... The code crashes at MazzeeGame.cpp at line 940. It seems that the game pointer in Mazzee.cpp is NULL at the time the Mazzee_MoveMonsters thread (in Mazzee.cpp) calls the Mazzee::MoveMonsters() method... But that can't be true, because, if I put a debug checkpoint at 263 in Mazzee.cpp, the game pointer has all of it's variables set up correctly! Why is this? Does anyone know? Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
I think you'd be better off posting the line and a few lines of surrounding code, than getting someone to download a zip file.
My articles
BlackDice
|
|
|
|
|
Looks to me like the values in objects in the monsters array are not initialised, they all have values like -8432573.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I do initialize them in MazzeeGame.cpp in lines 295-299:
monsters = new Monster[f_monsters];<br />
monsters[f_monsters-1].Location = x-sub;<br />
monsters[f_monsters-1].VerticalLocation = x-sub / width;<br />
monsters[f_monsters-1].SteppingChar.Attributes = c_black;<br />
monsters[f_monsters-1].SteppingChar.Char.AsciiChar = ' ';
HOLD ON A SECOND. I think I realized what the problem is... What does this do:
monsters = new Monster[f_monsters];
Does it clean out the entire array? Or does it just resize it?
I just tried this: realloc(monsters, f_monsters); instead, but I still get the error... How do I resize an array correctly? (Those two haven't worked yet...) Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
realloc is C, don't use it.
Kixdemp wrote: monsters = new Monster[f_monsters];
If there was an array there already, it leaks memory. It creates a new block of memory, with new objects, none of them initialised.
Kixdemp wrote: How do I resize an array correctly?
I'd suggest you look into std::vector if you want a dynamically sizing array.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Using a vector will not initialise the values in it, it simply gives you a dynamically sizing array. You still need to set the initial values for the variables in the struct you're storing in the vector.
How does the vector get set up ? Can you post some code ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Here's the declaration:
std::vector<Monster> monsters;
And here's how I initialize it:
monsters.resize(f_monsters);<br />
monsters[f_monsters-1].Location = x-sub;<br />
monsters[f_monsters-1].VerticalLocation = x-sub / width;<br />
monsters[f_monsters-1].SteppingChar.Attributes = c_black;<br />
monsters[f_monsters-1].SteppingChar.Char.AsciiChar = ' ';
Am I doing something wrong? Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
Kixdemp wrote: monsters.resize(f_monsters);
How is this initialising anything ? You shouldn't have to call resize. Where do you call push_back ?
Kixdemp wrote: monsters[f_monsters-1].Location = x-sub;
monsters[f_monsters-1].VerticalLocation = x-sub / width;
monsters[f_monsters-1].SteppingChar.Attributes = c_black;
monsters[f_monsters-1].SteppingChar.Char.AsciiChar = ' ';
This sets up one object, the last in the list. What about the rest of them ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|