Results 1 to 14 of 14

Thread: How can i Build VC++ application through VB 6.0

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    How can i Build VC++ application through VB 6.0

    HI Guys,
    I am calling a DLL developed in VC++ through V.B 6.0.its working.. no problem with it. Now the problem is... some times, i have to change my header file in VC++, so at this time , i have to build the VC++ application again.
    Can i build it programatically with v.b 6.0? if so kindly let me know how to do it?

    Thanks:
    regards:
    raghunadhs

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How can i Build VC++ application through VB 6.0

    Quote Originally Posted by raghunadhs
    HI Guys,
    I am calling a DLL developed in VC++ through V.B 6.0.its working.. no problem with it. Now the problem is... some times, i have to change my header file in VC++, so at this time , i have to build the VC++ application again.
    Can i build it programatically with v.b 6.0? if so kindly let me know how to do it?

    Thanks:
    regards:
    raghunadhs
    No. Any changes you make must be made through Visual C++ then rebuilt, and redistributed.

  3. #3
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: How can i Build VC++ application through VB 6.0

    You could make an auto-downloader though that would alert the user of an update and download the file.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    Re: How can i Build VC++ application through VB 6.0

    Hi Hell-Lord,
    i am sorry to say that i did not have any idea about that auto down loader. could u explain this.. and in my application, i am able to create a header file to vc++ application the only thing is i have to include the header file and have to build it...

    Thanks in advance:
    regards:
    raghunadhs

    Quote Originally Posted by Hell-Lord
    You could make an auto-downloader though that would alert the user of an update and download the file.

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How can i Build VC++ application through VB 6.0

    What about a commandline shelling of the vc++ compilier passing the project name and appropriate switches.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    Re: How can i Build VC++ application through VB 6.0

    Hi RobDog888,

    i have not tried the shell execute. i will try this also. i think, through this we can execute the exe file only.. but here the requirement is to build the vc++ application, after changing the header file's content....
    any how, i will look into it once again...
    thanks
    regards:
    raghunadhs.v
    Quote Originally Posted by RobDog888
    What about a commandline shelling of the vc++ compilier passing the project name and appropriate switches.

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How can i Build VC++ application through VB 6.0

    You can pass many different arguments to vc++. Such as the project and compile switch etc.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    Re: How can i Build VC++ application through VB 6.0

    Hi Rob,
    could u please provide a sample example, even it is single line also sufficient.

    Thanks:
    regards:
    raghunadhs

    Quote Originally Posted by RobDog888
    You can pass many different arguments to vc++. Such as the project and compile switch etc.

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How can i Build VC++ application through VB 6.0

    Just do a /? after the entire path to vc++ typed into the run dialog box. It will msgbox the args.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    Re: How can i Build VC++ application through VB 6.0

    Hi Rob,
    I am sorry to say that i don't know where i have to put that /? .... here are my decleration and function call.. please say where i have to place that special characters.
    Private Declare Sub CrcComputeCrc32 _
    Lib "CRC32Example.dll" Alias "_CrcComputeCrc32@12" _
    (ByRef FirstElement As Byte, ByVal intNoOfElements As Integer, ByRef bytCrc32Array As Byte)

    function call:
    Call CrcComputeCrc32(bytChannelLock(1), intCrcLength, bytReflectArray(0))

    Thanks:
    regards:
    raghunadhs

    Quote Originally Posted by RobDog888
    Just do a /? after the entire path to vc++ typed into the run dialog box. It will msgbox the args.

  11. #11
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How can i Build VC++ application through VB 6.0

    As I mentioned you can get a msgbox popup from the Run dialog box off of the start menu just to determine what switches are available to you.

    Open the run box (Start button > Run menu item)
    Enter in the path to your install of VC++ file.
    Add the " /?" to the end of the file path.
    Press the Enter key.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    Re: How can i Build VC++ application through VB 6.0

    Hi Rob,
    i did like that, but a pop up message "can't find ...." is coming, since it can't find the mentioned path.

    Thanks:
    regards:
    raghunadhs



    Quote Originally Posted by RobDog888
    As I mentioned you can get a msgbox popup from the Run dialog box off of the start menu just to determine what switches are available to you.

    Open the run box (Start button > Run menu item)
    Enter in the path to your install of VC++ file.
    Add the " /?" to the end of the file path.
    Press the Enter key.

  13. #13
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How can i Build VC++ application through VB 6.0

    Then you entered in an invalid path. Use Explorer to navigate to your VC++ install location and copy the path from the address bar and append the vc++ executable name to it and then the /?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    167

    Re: How can i Build VC++ application through VB 6.0

    Hi Rob,
    Thank you very much. i will see it and let u know feed back.

    Thanks:
    regards:
    raghunadhs.

    Quote Originally Posted by RobDog888
    Then you entered in an invalid path. Use Explorer to navigate to your VC++ install location and copy the path from the address bar and append the vc++ executable name to it and then the /?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width