Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. nytyme

    #include wait until load finishes

    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...
  2. nytyme

    #include wait until load finishes

    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...
  3. nytyme

    #include wait until load finishes

    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...
  4. nytyme

    I want to pass a string to a MFC app through the command line

    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...
  5. nytyme

    How Can I make a Global Variable?

    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...
  6. nytyme

    I want to pass a string to a MFC app through the command line

    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...
  7. nytyme

    I want to pass a string to a MFC app through the command line

    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)...
  8. nytyme

    Database connectivity using C/C++

    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...
  9. nytyme

    How do I Set the Title Bar to a variable? (Specifically, String Table)

    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...
  10. nytyme

    Getting the Root or Application Directory (or sys

    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...
  11. nytyme

    Creating an EXE that runs minimized or hidden

    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
  12. nytyme

    Hide window on takbar

    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
  13. nytyme

    Win32 Application or Win32 Console Application

    Nevermind, the answer was staring me right in the face "lpCmdLine".
  14. nytyme

    Win32 Application or Win32 Console Application

    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
  15. nytyme

    Win32 Application or Win32 Console Application

    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...
  16. nytyme

    Command Line Arguments with MFC

    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...
  17. nytyme

    Creating an EXE that runs minimized or hidden

    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...
  18. nytyme

    Creating an EXE that runs minimized or hidden

    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...
  19. nytyme

    Changing the DEFAULT webbrowser to my application

    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...

Part and Inventory Search

Back
Top