Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

DKScherpy

@DKScherpy
About
Posts
6
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Failed to createa a new WinHttpRequest
    D DKScherpy

    I'm stuck and hoping someone else can help. I'm working on an ASP.NET app (C#). At one point, I need to create an WinHttpRequest object that uploads a file. Here is the code: try { WinHttpRequest whr = new WinHttpRequest(); whr.SetTimeouts( 0, 0, SendTimeout, ConnectTimeout ); whr.Open( "POST", (( this.IsProduction ) ? LIVE_URL : DEV_URL), false ); whr.SetRequestHeader( "ENCTYPE", "multipart/form-data" ); whr.SetRequestHeader( "Name", "FileUpload); whr.Send( this.UploadFile.ToString() ); // create the content request whr.WaitForResponse( ResponseTimeout ); ResponseText = whr.ResponseText; this.UploadFile.Uploaded = ( ResponseText != null && ResponseText.ToUpper().IndexOf( "SUCCESS" ) != -1 ) ? true : false; } catch ( Exception ex ) { ResponseText = ex.Message; } // try/catch But for some reason the code just halts and doesn't come back after the line: WinHttpRequest whr = new WinHttpRequest(); I've put code in before and after the line to log what is happening and the code up to that point works fine, and then it goes into the new WinHttpRequest and then nothing. Oh, and it works _some_ of the time in this app and works consistently when the same code is used in other apps. I am making a lot of new WinHttpRequest objects throughout the code, could that be a problem? Any ideas or leads would be very helpful. Thanks in advance.

    ASP.NET help csharp question asp-net

  • A couple of sick jokes I found
    D DKScherpy

    I'll add one. Q: What happened when the teacher's laser pointer died? A: He threw a null pointer exception.

    The Lounge question delphi database oop tutorial

  • CDaoDatabase Create Field
    D DKScherpy

    Ok, I have a concurrency problem (I think) while trying to create a field using CDaoDatabase & CDaoRecordset. Long and short of it is that I need to create a field in an access database while still keeping a recordset that is connected to the table open. When I create the field using the following code: CDaoTableDef tableDef(&m_daoDB); tableDef.Open(sTableName); tableDef.CreateField(newField); I also have a recordset open on the same table. The last line throws an exception with a message: _The database engine could not lock table 'Test Datatypes' because it is already in use by another person or process._ Any help or thoughts on that would be wonderful. Thanks in advance.

    Database help database discussion

  • DLL Importing a class from the calling EXE
    D DKScherpy

    Possibly - I kind of understand what an interface is/works. Can you, or anyone, give me a link or source that I can find an example of? -- modified at 9:06 Friday 15th December, 2006

    C / C++ / MFC sales performance help question

  • set edit box to read only
    D DKScherpy

    Try calling the function CEdit::ModifyStyle and passing in ES_READONLY. See http://msdn2.microsoft.com/en-gb/library/0xhz2t1c(VS.80).aspx for ModifyStyle and http://msdn2.microsoft.com/en-us/library/f7yhsd2b(VS.80).aspx and look at the parameters for the CEdit::CreateFunction

    C / C++ / MFC question

  • DLL Importing a class from the calling EXE
    D DKScherpy

    I've got a problem with a DLL calling a function from a class in the EXE. Here's the scenario I have. My app needs to give the user the a certain ability if and only if the DLL is present on their machine. (In this case it is a DLL I wrote to print a custom report). So if the DLL exists, when the report is called, the exe passes the object to make the report from to the DLL and the DLL goes to work and make the report. What I need to be able to do, is to support the object changing in the EXE (new functions, new class members - basically, to be able to change the memory map of the object) and for the DLL (even if it is 3 generations older than the calling EXE) to still take in the object and create the report. This way, the customer can just keep their original custom DLL but still get updates to the product. Anybody know a way to do this? Thanks Dave

    C / C++ / MFC sales performance help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups