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...
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.
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...
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...
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...
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...
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...
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...
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
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.