We'll try this again as there appears to be a language gap.
Help Docs say include happens at compile time, include always happens at compile time in java,c++,vb, powerbuilder, CF, flash, that's not the issue. it never was the issue, it wasn't part of the question.
the fact that it can be done...
what I'm looking for is something that I can put in the AS file that says after everything has loaded, move on and handle the next include.
currently i do that on the timeline, frame 1
stop();
include "file1.as" // which calls play(); onLoad
frame2
stop();
include "file2.as" // which calls...
I have an #include issue.
I have several AS files that perform setup for my movies. One loads variables, one sets styles, etc.
The problem is ActionScript doesn't wait for code to finish executing before moving on, specifically in the case of load().
So, #include "variables.as" will run and...
Ah, it took me a bit, but I caught your meaning.
Thanks Ahoodin
if( m_lpCmdLine[0] != NULL)
strcpy( ccmd_line_arg, m_lpCmdLine);
works, but i had to comment out this stuff first:
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
really simple solution, thanks alot :-)
have a...
i used the MFC Exe Dialog Wizard to create a program.
i want to set a variable and then use a MessageBox to pop it up for me.
I tried to set a Global variable by placing it in one of the generated Header files, but it says it tries to create it multiple times. i tried to static it, but it...
Thank you for the code, I'm sure I will need it later.
However I'm not sure it gives me what I want.
I want the equivalent of argc and argv in a console application or lpCmdLine and nCmdShow in WinApp32.
The method you gave me returns the whole CommandLine string, but its still has the problem...
i want to write an application so that i can pass a string to application using the command line.
MyApp.exe "Hello Wold"
i may be misunderstanding it, but the MFC command line parsing appears to only look at specific flags.
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo)...
This isn't the end all be all answer, but I know what you mean.
You might want to look for NTWDB.LIB and NTWDB.DLL in the MSDN Library.
It uses a direct (Non-ADO) connection to the database. I'm not sure how long support will be maintained as M$ is pushing OLE, ODBC, and ADO and whatever else...
I've been working with C/C++ off and on for serveral years and am self taught. I never have much time to learn, so I became good at finding answers on the web and in Books. However, the answers I found are all similar and are not working.
I am using M$ Visual C++ 6.0 using MFC for the first...
i have an INI file that needs to be in a specific directory (i'd like to avoid this) or in a relative directory to the EXE. I tried using GetCurrentDirectory() but that gives me the calling application's directory, not the EXE that uses GetCurrentDirectory(). ( i wrote an EXE that is called...
Hi John,
thanks for the info, I'm sure WndProc will be useful to me later. but to solve this problem, the solution was alot easier than i noticed first off. Win32Apps do not
require a window to perform. so i made a windowless application and get the desired
results.
Thanks,
Sean
I know its a late answer, but if you're still looking,
you can use ShowWindow().
you'll need a handle to the current window ( i think GetActiveWindow() ) will work.
then set it to 0 or SW_HIDE
Thanks Pete,
I ran the App Wizard and it finally gave me a working product.
Could I trouble you for an example of how to grab the commandline arguments?
Thanks again,
nytyme
I have seen alot of people recommending using Win32 Applicaitons as opposed to Win32 Console Applications. Why is this so? Whenever i try to compile a Win32 Application on NT4 VC++ 5 and 6, I get "unresolved external symbol _windows@16". doesn't this mean its 16 bit and the compiler...
I'm not used to dealing with MFC, and my knowledge of C++ is still very amature.
i've developed an application that needs to run minimized or hidden, so i used the
MFC application. i want to continue using it, so please no suggestions to the effect
of using a different method.
what i need to...
how would i make it a service?
is there an easy example or program that does it?
i have an application that runs for 8 seconds, but i don't like the console appearing because it distracts the user. its for an NT 4.0 environment.
whats happening is when the user clicks a link or hits the...
i want to make a Win32 application that runs minimized or hidden.
i've built everything except that part. to make it run minimized i was trying to use ShowWindow(). This requires a handle to the window to be affected.
so my questions are:
How can I get the handle of the exe at runtime?
is...
I need to set my Application to the default browser.
So that when ever i click on a link in an email my application launches.
I have seen several Registry Entries, but when i changed them it didn't seem to affect it.
I also heard to change the extensions, but it will have to include...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.