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 Mike Lewis 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. Shawnasie

    Using ShellExecute() to Open a File in Excel

    I also should note that I added the excel file to the project-- that might have helped.
  2. Shawnasie

    Using ShellExecute() to Open a File in Excel

    Thank you everyone for the suggestions!! I got it to work finally, and I feel silly because it is sooo simple: ShellExecute(NULL, "open" ,"Waypoint Tool.xls", "C:\\Documents and Settings\\Lab1\\My Documents\\", NULL, SW_SHOWNORMAL);
  3. Shawnasie

    Using ShellExecute() to Open a File in Excel

    Absolutely nothing. I tried even that third line you gave with "open" instead of "NULL" in the second parameter and it still didn't work. Also, I tried as before with "excel" in the third parameter, "Tool.xls" in the fourth, and the rest as you gave me-- it opens excel but says that it cannot...
  4. Shawnasie

    Using ShellExecute() to Open a File in Excel

    Thank you everyone for the suggestions -- I can't tell you how much I appreciate having something to try. I am running out of ideas. So far nothing has worked. So I am looking into other options. Happy Thanksgiving!
  5. Shawnasie

    Using ShellExecute() to Open a File in Excel

    I found a thread which says that basically the problem lies with the spaces that are in the path name. I tried what the thread suggests, which is to add another set of quotes, but it didn't work.http://www.tech-archive.net/Archive/Access/microsoft.public.access.formscoding/2007-05/msg01211.html
  6. Shawnasie

    Using ShellExecute() to Open a File in Excel

    Thanks, 2ffat. I tried both lines you gave. It doesn't do anything at all. Before, with the original line, it would at least open Excel. But if I take out "Excel.exe" it doesn't do anything.
  7. Shawnasie

    Using ShellExecute() to Open a File in Excel

    It just occured to me that I put in NULL for the handle. The link you gave me from the FAQs says that it should be the handle for the parent window -- what does that mean?
  8. Shawnasie

    Using ShellExecute() to Open a File in Excel

    This is odd though -- when I put in the file name "Calculate Distance.xls", which is another file in excel that I have, it says that it cannot find "Calculate.xls". Then another box opens that says it cannot find "Distance.xls". Basically, it is reading them as two different files.
  9. Shawnasie

    Using ShellExecute() to Open a File in Excel

    Thank you for those links. I had not read those, but I read about ShellExecute() on MSDN after posting this, and it was basically the same thing. I am doing just what one of the examples said, but it still says it cannot find the file.
  10. Shawnasie

    Using ShellExecute() to Open a File in Excel

    I am using Borland Builder C++ 2009. I want to open a particular file from Microsoft Excel during runtime. The following line of code opens Excel, but there's a message saying it cant find the file "Tool.xls" -- I have tried giving it the entire path for the file, and it still can't find it...
  11. Shawnasie

    AnsiString conversion to double giving error

    Okay, I found there was another problem, not with the AnsiString() conversion function. Sorry, everyone. I think I need to wait a little longer before I post.
  12. Shawnasie

    How to edit exif headers for a jpg?

    Found a great edit tool called Jhead. Ended up using the source code, which is in C, and got it to work. http://www.sentex.net/~mwandel/jhead/
  13. Shawnasie

    AnsiString conversion to double giving error

    I am using CodeGear C++ Builder 2009. I am getting an error, and I don't understand why. Here's my code: if (angle < 0) { angle = 360 - angle; } AnsiString zero; AnsiString str = AnsiString(angle); int dot = AnsiPos(".",str); AnsiString rounder = str.SubString(dot + 2, 1)...
  14. Shawnasie

    Dll not working -- Please look at my code!

    Well, I found what was wrong. The LoadXML() function couldn't find the xml specified. I moved it into the debug folder and problem solved!
  15. Shawnasie

    Dll not working -- Please look at my code!

    I am using a dll which allows me to create files containing both images and data about the images. I don't get an error when I run my program. However, when I go to view the files in a special viewer, it won't show a particular section. So, something is wrong with the way that I am entering the...
  16. Shawnasie

    How to edit exif headers for a jpg?

    I found a great site for this. Using the source code provided, I can read the information in the exif. Now, I need to figure out how to edit. http://www.codeproject.com/KB/graphics/cexif.aspx http://www.codeproject.com/KB/graphics/cexif.aspx
  17. Shawnasie

    How to edit exif headers for a jpg?

    I am not sure if this is the best place to ask this. I am using Borland Builder 2007. I want to edit the exif (header file) for jpgs from a digital camera. It would be nice to access the information (such as the camera type) and then delete it so that it is just a normal jpg. Just wondering if...
  18. Shawnasie

    Dll- library raising exception class EAccessViolation

    So, I figured out there was a problem with the dll I was using. Sorry if I wasted anyone's time.
  19. Shawnasie

    Dll- library raising exception class EAccessViolation

    I am using CodeGear RAD Studio Borland Builder C++. I have a dll file that I have linked implicitly. I want to be able to use the classes and functions inside this library, but everytime I try, I get a first chance exception at run time stating, "Exception class EAccessViolation with message...
  20. Shawnasie

    Searching for text files in a directory-- keeps finding jps too!

    Thank you, 2ffat. I included that file and it totally works now!!

Part and Inventory Search

Back
Top