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

    Returning char* from C++ dll

    Hello, I've got a C++ dll that I need to call that returns a char* value. I've tried using this in C#, but I can't seem to get it to work. This is the way I'd like to do it, but my string is always blank. [DllImport("stringReturn.dll")] public static extern string...
  2. howardnl

    Select ODBC connection

    I had to download it. I don't know too much about it. I figured that since it can be done in C++ then it should also be able to be done in C#. We have a couple of support calls to Microsoft, so I might call them and see what they say.
  3. howardnl

    Select ODBC connection

    Thanks for the help RiverGuy. What if I'm using ODBC .NET?
  4. howardnl

    Select ODBC connection

    Hello, I'm working on an application where I want the user to be able to select a ODBC data source. How can I bring up the "Select Data Source" window? It looks similar to the ODBC Data Source Administrator window. In C++ I could do this like this: CDatabase myDb; myDb.Open(NULL...
  5. howardnl

    Automating Excel without MFC

    Hello, I am automating Excel with VC++. I have been using all the wrappers instead of direct COM Automation. Direct automation is supposed to be faster, but how much of a performance increase is there? I need the absolute best performance possible, but I would like to know if it is worth my...
  6. howardnl

    smart thing to do??

    pink, Yes, I would learn C++ first. Unfortunately I don't know any good books. I learned in college with a Deitel & Deitel book (can't remember exactly what it was called). It was a decent book, but my experience as far as C++ books goes it limited. Make sure you get something that covers the...
  7. howardnl

    smart thing to do??

    Pink, I don't think you can go wrong with C++/MFC. C++ has been around a while and I don't think it is going away anytime soon. Programming Windows With MFC by Jeff Prosise is a good resource. I would also try to learn ASP .NET - using C#. If you know C++ and/or C# then you can do pretty much...
  8. howardnl

    CListBox Problem

    Hello, I have an application that when the user presses a button a dialog box pops up. From that dialog box another button can be pushed that brings up a CFileDialog box that lets the user select multiplie files. The selected files are put into a CListBox control. That works fine. My problem...
  9. howardnl

    ODBC / Query analyzer error

    Hello, I have a SQL Server database setup at a remote location and I have an ODBC connection to the server. I also use Query Analyzer to query the db. They both worked fine until the other day when I was fooling around with the local users on the remote server. Now when I try to access the db...
  10. howardnl

    Freeze panes

    Hello, I'm working on a project using C++ to create an Excel spreadsheet. Everything works fine, but I need to be able to freeze some of the panes. How can I do that? I really appreciate any help. Thanks, Nick
  11. howardnl

    Createdispatch problem (PLEASE help)

    Thank you very much for your help. You are absolutely correct and now it works as it should. I'm kind of new to this type of stuff, so what is the #import directive and how is it used? If you know of a site with a good explannation that would be great. Any additional help is greatly appreciated...
  12. howardnl

    Createdispatch problem (PLEASE help)

    Hello everyone, Here is my problem. I created an exe that was basically a collection of functions and it worked fine. It created an Excel spreadsheet, put some data in cells, and saved it. It uses Createdispatch to open Excel. I wanted to move these functions to a dll, but when I call...
  13. howardnl

    Problem running exe from asp

    Thanks for the help. Does that mean that I can't run the exe? I know there are no problems with the exe, because I can run it on my machine with no problems by double clicking on it. I know there is an option to allow services to interact with the desktop. If I change that will it work? Or are...
  14. howardnl

    Problem running exe from asp

    I'm having a problem running an exe from asp. The exe is part of a project that I am working, but I did not develop it. My code is: dim wshell, command set wshell = server.CreateObject("wscript.shell") command = "c:\demo.exe" wshell.Run command set wshell = nothing My...
  15. howardnl

    Editing the registry

    Hi, I finally decided to join. Here's my code: dim wshell set wshell = server.createobject("wscript.shell") 'if i display the registry value it appears response.write(wshell.regread("registry key")) 'now i want to update the same value that i just displayed 'with something...
  16. howardnl

    Editing the registry

    Thanks for the reply. I wasn't very clear. Here's what I need to happen. The user comes to the page and selects an option from a dropdown list. When they submit their choice they should go to another page where based on the value that they selected, a registry value on the server should be set...
  17. howardnl

    Editing the registry

    Is there a way to edit the registry with ASP? I have been able to read registry values using wscript.shell, but I get an error when I try to update. It says "Invalid root in registry key." Could I be missing something? Based on user input I need to set a registry value. Thanks for any...
  18. howardnl

    How to run a command line command from asp

    Hi, I need to be able to run a command line command from within asp. How can that be done? I am going to have a user select an option from a list and based on their input run something from the command line. From what I've seen so far, I need to use Wscript.shell, is that right? Thanks for any...

Part and Inventory Search

Back
Top