CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: LBensman

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. I figured it out.... I had it declared twice,...

    I figured it out.... I had it declared twice, second time without withevents.... :(
  2. No, that's definately not the case.... both...

    No, that's definately not the case.... both classes are instantiated.
  3. WithEvents with basic class (not ActiveX)

    I have a basic class module (not ActiveX) that raises an event (passes a string to be logged by host).

    in the host, which is another class module I have:

    Dim WithEvents oMyObj as clsMyClass
    ...
  4. Replies
    0
    Views
    654

    SQL Server and Visual Source Safe

    Has anyone ever attempted to marry SQL Server and Visual Source Safe... Judging by some stored procedures in SQL Server, it supports VSS, but I don't see anywhere on how to accomplish it.
  5. Replies
    4
    Views
    1,518

    I'm aware of LoadString, and currently trying to...

    I'm aware of LoadString, and currently trying to implement it in the code.

    With FormatMessage, I don't need to know the final size, since I can simply ask FormatMessage to allocate memory for me....
  6. Replies
    10
    Views
    2,610

    This exactly why I spent quite a bit of time on...

    This exactly why I spent quite a bit of time on this long time ago:: marking unfinished/questionable code to comeback to later. Very usefull b/c one can see it during compilation.

    What I have, is...
  7. Replies
    4
    Views
    1,518

    Hmm, I didn't think that messages from MC and...

    Hmm, I didn't think that messages from MC and string table would be different things... OK, can you the suggest me how to use this without MFC?

    LoadString does not say how big the string in the...
  8. Replies
    4
    Views
    1,518

    FormatMessage in ATL COM problem

    I'm having a problem with FormatMessage in ATL COM object.

    I have a basic ATL COM dll that has a message in its string table defined:

    IDS_UPDATES_AVAILABLE - Some string with places to fill %1...
  9. Replies
    3
    Views
    2,803

    I found how to do this... Code is slightly...

    I found how to do this... Code is slightly involved, but there is a sample in MSDN... Thanks anyway...
  10. Replies
    7
    Views
    3,869

    Perfectionist that I am, couple of things...

    Perfectionist that I am, couple of things...
  11. Replies
    7
    Views
    3,869

    Nope, I think it needs some corrections:::

    Nope, I think it needs some corrections:::
  12. Replies
    7
    Views
    3,869

    It really is the same thing... If you are using...

    It really is the same thing... If you are using smart pointers (by #import-ing ado), then it is



    pRs = pCmd->Execute();

    ..... do your processing .....

    pRs->Close();
  13. Replies
    9
    Views
    863

    I didn't think those were supported when CG moved...

    I didn't think those were supported when CG moved to new interface.... I think I tried old one _ccode_, it didn't work, and I thought that support was droped.... I'll definately keep this in mind for...
  14. Replies
    9
    Views
    863

    In reply to my own post: Turns out (what was...

    In reply to my own post:

    Turns out (what was in MSDN sample, but not that evident) the curprit was the inheritance of a handle. my hWrite handle was inheritable and thus I and a child had that. ...
  15. Replies
    7
    Views
    3,869

    in order to read output parameter (and retval is...

    in order to read output parameter (and retval is an output parameter), you must close and release all recordsets before attempting the read. A VB style code would look like:

    Set rs =...
  16. Replies
    9
    Views
    863

    Indeed I am... I'm taking hRead end of the pipe,...

    Indeed I am... I'm taking hRead end of the pipe, and pass it as child's stdin. child is able to successfully read the data... the prob is that ReadFile() doesn't recognize "EOF" on the handle when...
  17. Replies
    9
    Views
    863

    I don't want hStdOutput redirect.... I'm only...

    I don't want hStdOutput redirect.... I'm only redirecting input... output is not used, and is NULLed.
  18. Replies
    3
    Views
    1,024

    just type casting won't do... char[] is one byte...

    just type casting won't do... char[] is one byte per character, where as Wide string is a unicode string of 2 bytes per character. You can do two things:

    A) Look into USES_CONVERSION and A2W()...
  19. Replies
    9
    Views
    863

    Redirecting STDIN of child process.

    Hi,

    I'm having weird problem redirecting stdinput of a child process. I'm able to create a pipe, pass read end of it to child, create child, write data to child, and read data from child. The...
  20. Ok, I think I may shed some light on it. First...

    Ok, I think I may shed some light on it.

    First of all, it depends on threading model of your ATL project... is it multithreaded or STA???

    If it is multithreaded, running in MTA, then your...
  21. Replies
    3
    Views
    2,803

    Write to STDIN of another process

    This is probably way to basic, but I can't think of a solution for some reason.

    I'm trying to figure out how to write to another (new) process' stdin.

    I remember that if I wanted to redirect...
  22. Replies
    10
    Views
    1,055

    I was drawing an image of another desktop......

    I was drawing an image of another desktop... refreshing the image at times 20 frames a sec with in memory DC and drawing from that DC in ondraw... and it worked well on my desktop and laptop...
  23. Replies
    10
    Views
    1,055

    Right: I'm not sure what project you are doing...

    Right: I'm not sure what project you are doing (ActiveX control or something else), but last time I worked with OnDraw - besides getting HDC to which you need to draw, you also get the region that...
  24. Replies
    10
    Views
    1,055

    Actually (and I don't know if it will work well...

    Actually (and I don't know if it will work well or not), but you can try to use both: Have a complete memory DC from which you draw, and invalidate only changed areas... copying bits from BitMap is...
  25. Replies
    10
    Views
    1,055

    Hmm.... what about drawing everything to a...

    Hmm.... what about drawing everything to a memory DC, then once done, invalidate the whole screen. Change your draw function to simply copy memory dc to the destination draw device....?????
Results 1 to 25 of 69
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)