User Profile

Collapse

Profile Sidebar

Collapse
ironmanlarry
ironmanlarry
Last Activity: Aug 16 '07, 08:31 PM
Joined: Aug 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ironmanlarry
    replied to running VB exe from C++ program
    in C
    Hey, never mind, I got it to work using the System::Diagnos tics::Process:: Start(String^,S tring^) function. Thank you so much for your help.

    Larry...
    See more | Go to post

    Leave a comment:


  • ironmanlarry
    replied to running VB exe from C++ program
    in C
    I should mention that the exe takes an argument. Someone suggested using System::Diagnos tics::Process:: Start(String^) and that worked, but I had to take out the argument. However, using system(char*) should have no problem with an argument, right, cause it's a system command?
    Thanks.

    Larry...
    See more | Go to post

    Leave a comment:


  • ironmanlarry
    replied to running VB exe from C++ program
    in C
    Perhaps part of it runs, but when I run it outside of the C++ program, it always comes up with a prompt saying it will perform an SQL statement (the mail merge) and then it says it is printing the document.
    When running it from the C++ program it never displays either of these, and nothing comes out of the printer.
    Thanks.
    See more | Go to post

    Leave a comment:


  • ironmanlarry
    replied to running VB exe from C++ program
    in C
    Hi,

    Thanks for the reply, here's the code segment.
    [code=cpp]
    System::IntPtr temp = System::Runtime ::InteropServic es::Marshal::St ringToHGlobalAn si("C:\\Documen ts and Settings\\jshef field\\My Documents\\Visu al Studio 2005\\Projects\ \timesheet_\\ti mesheet_\\Merge .exe " + usern);
    char* action = (char*)(void*)t emp;
    system(action);
    System::Runtime ::InteropServic es::Marshal::Fr eeHGlobal(temp) ;...
    See more | Go to post
    Last edited by sicarie; Aug 16 '07, 07:09 PM. Reason: Code tags are in the box to the right when you create or reply to a thread.

    Leave a comment:


  • Thank you for the help.

    I was actually able to get it to work using the GetObject call. I think it needed the full path of the file to open.
    However, when I try to run the program from a C++ program, it doesn't work. Do you know anything about that?

    Thanks, Larry...
    See more | Go to post

    Leave a comment:


  • ironmanlarry
    started a topic running VB exe from C++ program
    in C

    running VB exe from C++ program

    Hey,

    I've got a C++ program that runs fine and a VB program that I made into an exe file and that runs fine by itself. It does an Excel to Word mailmerge and prints the document. However, when I try to run the VB program from the C++ program it just flashes the command prompt and does nothing. I'm using the system(char *) command to run it.
    Any help is much appreciated, thank you.

    Larry
    See more | Go to post

  • error using GetObject - "cannot create ActiveX component"

    Hi,

    I'm trying to do a mail merge from Excel to Word (programaticall y) and I'm having some trouble creating the Word Document Object. This line of code
    wordDoc = GetObject("shee t.doc")
    keeps returning the error "cannot create ActiveX component" and then the program crashes.
    Any help is much appreciated. Thank you.

    Larry
    See more | Go to post

  • ironmanlarry
    replied to Access crashes when making MDE file
    Thanks for the help,

    I did what you suggested and I tried this with the files on my desktop instead of on the company file server. I'm not sure which did the trick, but it worked so, thanks a lot!

    Larry
    See more | Go to post

    Leave a comment:


  • ironmanlarry
    started a topic Access crashes when making MDE file

    Access crashes when making MDE file

    Hey,

    I'm trying to take an mdb file and make an mde file from it. I've done it before without any problem, but now when I try to do it, Access will go into Not Responding mode as soon as I click the mouse a second time. The mde file never gets created, but a strange file called db1.mdb gets created in the directory the good mdb file is in. Any help is much appreciated, as this is time sensitive. Thank you
    See more | Go to post
No activity results to display
Show More
Working...