|
Matthew Faithfull wrote: It looks like an attempt to sort of create a class in 'C' by tying functions to a struct to make them 'member' functions.
Spot on. Gtk[^] is full of these -ehm- constructs.
|
|
|
|
|
I'd say Windows, Linux, Un*x, <insert OS kernel here> are full of these constructs. Poor man's OO!
--
Kein Mitleid Für Die Mehrheit
|
|
|
|
|
Hello,
I've got a source code from here http://home.pacbell.net/michal_k/6502.html for the 6502 simulator, it's designed for vs6, i tried to compile it under vs2005, i got some compilation error, which i corrected then finally vs2005 generated the exe, when running it from vs2005 it tells me "Unable to start program 'path of the exe'" it doesn't even start the debugger, or step into the code, running it from out side vs2005, i got this error, "path of the exe The parameter is incorrect.", I'm sure it's not about the passed parameters to the exe, since the precompiled exe works fine without parameters, and vs2005, doesn't start the debugger, or step into the code to even check the parameters to be honest i didn't try to see the code to correct this problem, because i think, it's something else, i have no idea what, can some body help me?
Thanks for advance.
::
|
|
|
|
|
hontonihanashita wrote: to be honest i didn't try to see the code to correct this problem, because i think, it's something else, i have no idea what,
If you haven't taken the time to at least try to figure it out on your own, why should we be bothered to help you? Cowboy up and be a programmer for christ's sake.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Of course i did try to figure it out on my own, and i googled a lot, and even tried IRC, I just meant, i don't think it's something with the code, because it doesn't run at all, would somebody help me where to try.
thanks for advance.
::
|
|
|
|
|
If it's not the code maybe it's the project settings. I take it the project was auto-converted from VC6 to VC8 format. This is not a foolproof process especially if the VC6 project contained any custom build steps.
You need to check the VC8 project settings which are numerous and not something I'm expert in. If you get stuck you can always create a simple .exe project from scratch in VC8 and then compare the settings to try and spot something that would make your ported project fail, like building for the wrong architecture for example.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Thanks for the help, i found that the Entry Point was blank so i added WinMainCRTStartup, i thought this will solve the problem, but also the same problem
Thanks
::
|
|
|
|
|
I got it, it's a problem with the generated manifest file when i compared generated manifest files i found this missing
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*' />
</dependentAssembly>
</dependency>
i added it manually, and it worked, but is there a way to correct this automatically?
thanks every body
-- modified at 4:18 Tuesday 16th October, 2007
::
|
|
|
|
|
Hi CPians,
Driver Dll, VC++6.0. Nothing else.
I need a sort of vector implementation for my application, but I cannot bind STLs (nor have I MFC). So what I need is basically a container in which I could enqueue or drop data, without the memory being deallocated.
Before I start it from scratch, do you know by chance of any possible implementation ?
Thanks,
RaGE
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
Rage wrote: but I cannot bind STLs
Why? It's just code. Do you plan on having this container without any code? That's not how it works.
|
|
|
|
|
Because we use it on a plateform where we do not have enough memory to bind it with our code.
I know STL is standard and is only code. My requirement is, I cannot use it. So before I reinvent the wheel, I only wanted to know if there is already something out there.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
Rage wrote: we do not have enough memory to bind it with our code.
Then how are you going to have enough memory for the something else that you are asking for?
|
|
|
|
|
because I only need a simple functionality, not the complete STL or even any of them, that I can modify for my purposes. And I do not want to start it from scratch. For God's sake, you have a CP award, how come YOU are asking such dumb questions ?!
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
Rage wrote: how come YOU are asking such dumb questions ?!
Your kidding right?
|
|
|
|
|
I've had the same requirement from a previous employer. I wrote my own list class that was just a simplified rip off of std::list and took less than a day to do. I guess they're still using it . You could check out some of the stl free data structures I used in my patterns article[^]
There are undoubtedly bugs but you're welcome to use and improve these classes at your own risk. No iterators with these I'm afraid they really are simplistic. I do have versions with template Allocator parameters of most of these but they aren't published. Let me know if you're interested.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Very useful, thank you very much.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
hi,
I written a MFC program using wimnn.dll to PlaySound and it succeeded.
After formatting my PC, everything is fine, BUT it fails to PlaySound.
Should I install something as well?
Please help!
Thanks!
|
|
|
|
|
Do sounds play at all, or just not via code?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The wave files are included in the project.
In the code, PlaySound() is called.
Before formatting my PC, it works.
But I what else should I install to make it work...
|
|
|
|
|
You did not answer my question. Does sound work at all on this machine, or does it just not work via code?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The sound device is ok. Only the program cannot play the wave files now.
|
|
|
|
|
Archyami wrote: The sound device is ok.
How are you verifying this?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Other programs like windows media player amd games can play sound. Only my program cannot.
2 computers have the problem after formatting.
|
|
|
|
|
What are the attributes of the sound you used? I mean the sampling rate, bit, etc. May be some driver mismatch after formatting? Did you try with some other wavs?
- NS -
|
|
|
|
|
I am NOT sure the wave attributes.
I am in office now.
I will try to replace the project wave files by windows wave files.
Thanks for you suggestion.
|
|
|
|