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 Wanet Telecoms Ltd 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. lsugirl

    CreateProcessWithLogonW example

    ...returns a zero (fails) but when I run GetLastError, it thinks it ran success. The dll still isn't registered. ANY ideas??? Thanks in advance. *************** #DEFINE FORMAT_MESSAGE_FROM_SYSTEM 0x00001000 && Value for use with FormatMessage API. From WINBASE.H #DEFINE CR...
  2. lsugirl

    CreateProcessWithLogonW example

    for Walid: ******************** FUNCTION long2str ******************** * Passed : 32-bit non-negative numeric value (m.longval) * Returns : ASCII character representation of passed * value in low-high format (m.retstr) * Example : * m.long = 999999 * m.longstr =...
  3. lsugirl

    CreateProcessWithLogonW example

    I made some changes. I don't get the error in the Event Viewer anymore but the dll still isn't getting registered. I can take the command line and run it from a cmd window and it works. CreateProcessWithLogonW( ; cUser , ; cDomain , ; cPass , ...
  4. lsugirl

    CreateProcessWithLogonW example

    I'm getting an error in the Event Log under Security. I don't make much sense since I'm not using Chinese. Logon Failure: Reason: Unknown user name or bad password User Name: ???? Domain: ??? Logon Type: 2 Logon Process: Advapi Authentication Package: Negotiate Workstation...
  5. lsugirl

    CreateProcessWithLogonW example

    Thanks. I don't get the error anymore and it seems to run fine but the dll isn't getting registered.
  6. lsugirl

    CreateProcessWithLogonW example

    ...machine? I am not a FoxPro programmer. here is what I have so far but I'm getting a type mismatch error on the "CreateProcessWithLogonW" call. ******************* ******************* #define LOGON_WITH_PROFILE 0x1 #define CREATE_NEW_PROCESS_GROUP 0x200 Declare Integer...
  7. lsugirl

    Access to registry denied

    I'm trying to register a .net dll in Foxpro 6. The user that is logged unto his machine doesn't have access to register. Sooo, I was going to use CreateProcessWithLogonW to register based on an admin. #1) does anyone have a good example of CreateProcessWithLogonW Foxpro use? I am not a...
  8. lsugirl

    When does GETENV("TEMP") return Long file names?

    ...it? lcProgramWebDLL = 'c:\Documents and Settings\jte\process\myDll.dll' lcShortName = lfn2sfn(lcProgramWebDLL) ?lcShortName In lfn2sfn, * if successful, llretval will contain the length of the * output string llretval = GetShortPathName(@lcInputString, @lcOutputString...
  9. lsugirl

    When does GETENV("TEMP") return Long file names?

    If I step through the code, I get "Error occurred, code is: 0". If there are no breakpoints in the code, I get "Error occurred, code is: 123
  10. lsugirl

    When does GETENV("TEMP") return Long file names?

    Thanks for the help. Now my lfn2sfn isn't getting the correct llretval when running the GetShortPathName. I'm getting a "0" error. Does anyone know what this error is? I have tried using GetShortPathName from Kernel32 and Win32API. Otherwise, my code is identical to the code above. I'm...
  11. lsugirl

    When does GETENV("TEMP") return Long file names?

    ...trying to use the lfn2sfn to get the short file name of a file. I have a varible name that is passed to the function. How to I read the return? * lcProgramWebDLL is dynamic * lcProgramWebDLL = "'"c:\Documents and Settings\jte\process\myDll.dll"'" ?lfn2sfn(lcProgramWebDLL) Within the...
  12. lsugirl

    Setting up SSL

    I found this great example. http://www.codeproject.com/csharp/HttpWebRequest_Response.asp
  13. lsugirl

    Setting up SSL

    I think that WebHTTPRequest is suppose to handle this if the url is https. But when I use the https url, I get an error "the ServicePointManager does not support proxies of https scheme
  14. lsugirl

    Setting up SSL

    Does anyone have any good examples of setting up SSL with an external website? I have a C# dll that is communicating with an external site. Do I create some type of certificate? Do I create a web service? Where to start? Thanks in advance.
  15. lsugirl

    HttpWebResponse with internal proxy

    I have an internal proxy that is using an username/password but I need to go to a site that requires a username/password. I'm trying to create the correct HttpWebResponse to handle this situation. Does anyone have any examples? I need a web request to go through my proxy server and log into...
  16. lsugirl

    How do I set up the proxy for a web request?

    I'm getting the connection closed error also. Did you figure out the problem? thanks in advance.
  17. lsugirl

    HttpWebResponse use in DLL returning "bad request" error

    Sorry. I meant I was using the C# dll IN an old Foxpro via a com wrapper.
  18. lsugirl

    HttpWebResponse use in DLL returning "bad request" error

    I created a C# dll that get quote information from an external site. The url that is generated works through a regular browser but then I use the DLL (from an old FoxPro app), I get a "The remote server returned an error: (400) Bad Request." error. Here is the code I'm using in the DLL...
  19. lsugirl

    How do I access a new DLL in Foxpro 6?

    Cool. thanks
  20. lsugirl

    How do I access a new DLL in Foxpro 6?

    I have another question. I'm using a C# dll and I'm getting an error that the entry point can't be found. I have checked the name and made sure it has the correct case. I was told on the C# forum that C# dlls aren't true dlls. "To call it from another language, program, etc., you'd have to...

Part and Inventory Search

Back
Top