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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by SWilliams15

  1. SWilliams15

    How do you run a DOS or BATCH file from VB6 code?

    tbuch, thanks. after about 2 hours in MSDN, late into the night, i stumbled across the shell command and your post confirmed it. i was looking for run, execute, and a bunch of other stuff before i finally found an article that talked about running dos apps in VB. i'm glad it's so...
  2. SWilliams15

    How do you run a DOS or BATCH file from VB6 code?

    How do you run an exe program or launch a .BAT file from within your VB6 program? Thanks, Sean
  3. SWilliams15

    Colored Richtext Control Fonts

    Here's a corrected version of the code above. Still same result. If sCmd = CMD_SETPRINTCOLOR Then Dim sColor As String Dim lColor As Long sColor = GetStringItem(2, gsELCommand(iY), ",") If sColor = "Green" Then...
  4. SWilliams15

    Colored Richtext Control Fonts

    Here's the code to set the color. I can set the color for the first line to any of these listed and I've stepped through it to verify that the colors are being set to lColor. If sCmd = CMD_SETPRINTCOLOR Then Dim sColor As String Dim lColor As Long...
  5. SWilliams15

    Colored Richtext Control Fonts

    I have a rich text control that I would like to print to using different colored fonts. I would like each line to have a different color of font (and other font characterisitics like size if that's possibel). Before the first line is printed to the control, I can use the SelColor command to set...
  6. SWilliams15

    Creating a variable from a value

    Use an array like this. This will put 1 in var(1), 2 in var(2) and 3 in var(3). dim var(3) as integer for i = 1 to 3 var(i) = i next i
  7. SWilliams15

    Debugging VC OCXs from VB

    I need to step into an OCX component app created in VC6, when it's called from VB6. I need to break at points in the debug version of the OCX code and then step through the code and display var values just like I could if I was running an executable in VC. I know this is possible, just not...
  8. SWilliams15

    WOWGlobalLock16 Bombs In NT but Works In Win98

    I have a 32bit ocx component that communicates with a 16 bit app using DDE. I call the ocx component from a VB6 app. Under Win98, the offending line of code below works but under winNT it does not. I get an error message in VB when running in NT saying that the method (GetData) failed in the...
  9. SWilliams15

    Win32 API Command?

    No i don't think it does. That's a specific function where OS functions are more generic. If you're working with a seq text file, that shouldn't be hard to do where you open a user specified file, have the user either send a string that you match in the text file to delete or line number, then...
  10. SWilliams15

    How do I send a file with e-mail from a C++ program

    I would look for a component to do this. Something I drop onto a form (like a timer in VB or common dialog control in VB) and can just tell it to send whatever message I want. There has to be something out there like this. Email is too popular not to have something like this out there.
  11. SWilliams15

    DLLs and Multithreading...

    Say I call a DLL function from VB. The DLL func then creates a worker thread. Does that worker thread get destroyed when the DLL is unloaded from memory? I'd say yes since it's running in the same address space. Could someone confirm this? Thanks, Sean.
  12. SWilliams15

    A Good C++ Tutorial

    Your at a good one. You'd be suprised at the wealth of information gathered on this page. In the book arena, I found the Ivor Horton's Wrox book Beginning C++ helpful for not only the basics but some advanced ideas too. Also Dietel and Dietel's C++ How To Program is a good suuplement to the...
  13. SWilliams15

    Writing an MFC Dll Without Namemangling...

    Thank you both for responding. I tried the first suggestion (extern "C") and I was still getting the name mangling. I don't know if what I want can be done. I have a basic-like language (assume it's VB) and I want to call exported functions from an MFC dll (dynamically linked -- 2nd...
  14. SWilliams15

    Writing an MFC Dll Without Namemangling...

    I have a simple regular shared MFC DLL that I'm trying to compile and call routines from another language. The problem I'm having is that I can't get the dll to compile without mangling the names of the the exported class and class methods. I can compile a regular DLL (no mfc) without name...

Part and Inventory Search

Back
Top