First of all, I would like to apologize for posting this question in the C++ forum as it deals with Classic VB (VBA) ... The reason I posted here is because I can't get an answer (not even a hint) in the VB/VBA foums ... I searched the web extensively but without any luck
I do not see where you've asked this question in the VB forum.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
I did ask similar questions in the VB and COM forums before and in other websites as well .. but these rather difficult questions often remain ignored or without a propper solution .. I thought VC programmers were more confortable with these type of in depth subjects.
The very few vb lines in the above code snippet should be easy to understand by non vb programmers .. I hope that anyone fmiliar with ole/com would hopefully be able to give me (at least) a rough hint
I am starting my application by a Service. Now When I want to save a
file, I tried using CFileDialog. but when ever I select "desktop" it
prompts a message as "C:Windows\system32\config\systemprofile\desktop"
refers to location that iss unavailable. It could be hard drive on this
computer, or on a network... "
I checked that "C:Windows\system32\config\systemprofile" is available
but there is not desktop directory inside it.
I want to download file from a given URL. I am using URLDownloadToFile() function for this purpose, but I am not getting the actual file. When I try to run the file, it throws an error.
As an example, If I download MSVS 2010 service pack 1 from Microsoft's website, the file size will be 795KB. But if I download using URLDownloadToFile() function passing the url and file name, downloaded file size will be 99 KB.
Is there any method to download an exe from a URL in C++.
You must pass the complete URL to the file. When browsing MS for downloads, they are often provided by a confirmation page that will start the download. If you pass that URL, wou will download the web page content. On such pages you will usually find a link to the real file if the download does not start after some time.
I've been trying to make a simple tracking game but I'm having trouble just setting up the basic game states. I'm hoping to use a finite state machine(FSM) to switch between screens but every article iv read about them is different and sometimes they leave out details, I couldn't understand it properly.
For example if I've two screens , Menu and Game screen. And in game I've to implement states for a simple tracking game. What would be a FSM look like to switch between them.??
but every article iv read about them is different and sometimes they leave out details, I couldn't understand it properly.
They are different because FSM are widely used, for different purposes.
There are not may details to understand. A finite state machine is a rather simple stuff. You should understand your scenarion, though.
By wild guess, you could do something like (or go with a more OO approach)
CPallini has given you a basic example for a FSM - you will understand that we're not here to provide ready solutions. You have formulated your game states - what stops you from extending that sample with that, or, at least trying?