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

Search:

Type: Posts; User: fransn

Page 1 of 31 1 2 3 4

Search: Search took 0.63 seconds.

  1. Replies
    2
    Views
    733

    Re: Target name on drop

    DragQueryPoint,WindowFromPoint and then you can query the window further.
  2. Replies
    5
    Views
    6,993

    Re: Some doubts about dlls and reference counting

    1. Dll is loaded in context of executable so not cross process.
    2. No, only within same process may you want to do that.
    3. You can safely leave that up to COM.
  3. Re: How-to specify the name of compiled output (*.exe) within C++ code?

    IN VC 2008 you can do the same as in VC6++

    project settings => Build events => Post build-events:

    REN $(TARGETPATH) newname.exe
    or something like that.
  4. Re: Creating in-proc COM Objects in the right apartment

    As you long as you check the Free threaded marshaller box the generated code should make sure your object marshalls correctly.
  5. Replies
    6
    Views
    1,421

    Re: https upload file

    On linux C++ this is easily done with openssl.
    The windows openssl could do it too but the current version moronically pauses a second between each step.
    e.g.

    openssl s_client -host...
  6. Thread: Bmp to JPG

    by fransn
    Replies
    8
    Views
    1,515

    Re: Bmp to JPG

    You could use this COM dll which has a very easy to use interface to convert bitmaps to jpegs.
    You need to rename imagehandler.zip to imagehandler.cab and then you can extract the contained dll.
  7. Re: How-to specify the name of compiled output (*.exe) within C++ code?

    You could also copy/rename the file with Post build options from the settings dialog. I use VC++ 6 , maybe it's slightly elsewhere in dotnet.
  8. Replies
    18
    Views
    1,999

    Re: Stange problem in std::map

    Ok what happens if you use a multimap instead?
  9. Replies
    18
    Views
    1,999

    Re: Stange problem in std::map

    Probably there are double (identical) entries in your input.
  10. Re: Regarding assigning a drive letter to a partition

    You could use QueryDosDevice and GetVolumeNameForVolumeMountPoint to iterate through your partitions until you find the new one and change that back to the old letter.
  11. Re: worker thread to fire events in COM?

    I looked at some code I wrote about a year ago where in a COM object a thread was started and this thread needed to notify the original thread of incoming messages.
    I see now that it didn't use the...
  12. Re: Regarding assigning a drive letter to a partition

    I already told you you are on the right track with DefineDosDevice.
    There are 4 other functions that you will need that are part of the same API as DefineDosDevice. Writefile is not one of them.
  13. Replies
    5
    Views
    12,586

    Re: how to Skin mfc dialog

    This will give your program the XP look and feel if that's what you mean: http://www.codeproject.com/KB/winsdk/makexp.aspx
  14. Replies
    4
    Views
    818

    Re: setup and registry

    I really like Inno too.
    It creates one single setup exe as opposed to the microsoft setups with multiple files.
  15. Re: worker thread to fire events in COM?

    Huh? I believe you didn't express yourself clearly, which happens to everyone.
    My point is, the base class can pass the raw *this* pointer along(as it isn't a com class). With this *this* pointer...
  16. Replies
    2
    Views
    1,843

    Re: Autohide window scroll bars

    You can just add ES_AUTOSCROLL to the styles for the control in the resourcefile
  17. Replies
    8
    Views
    1,432

    Re: Passing value from one exe to another exe

    sockets,named pipes, windows events + (memorymapped) files
  18. Re: worker thread to fire events in COM?

    As a workaround to passing the interface pointer, which requires marshalling, for this kind of situation I usually let the Com class derive from a regular C++ class with a virtual function that is...
  19. Re: Is it possible to develop a web page to draw UML Diagrams?

    Of course you can do that.
    But unless you're writing this site as a visual C++ isapi extension you should be in a different sub-forum.
  20. Re: Regarding assigning a drive letter to a partition

    Justifiable reasons? network administrators want this kind of functionality.
  21. Re: worker thread to fire events in COM?

    I think that in your thread function when the event is to be fired, you need to from the thread function notify the main thread to fire the event.
    So pass the *this* pointer along to the thread...
  22. Replies
    2
    Views
    1,179

    Re: Quick Search of a Binary File

    I'ld stick them into SQL server
  23. Replies
    25
    Views
    5,134

    Re: Get the folders opened in explorer.exe

    I'm running XP service pack 2 and explorer windows have the CabinetWClass classname.
    So you could enumerate those windows, look for SysListView32 (or ComboBox) elements inside it and query those.
  24. Re: Regarding assigning a drive letter to a partition

    It's easy to do.
    I wrote a program (of which I posted the exe here) that did just this, using those drive API's. Worked like a charm and Microsoft in Redmond bought a license.
    The only thing you...
  25. Re: Regarding assigning a drive letter to a partition

    You're barking up the right tree.
    I wrote that same program some years ago with attached file as result.
    Does it do what you need on Vista?
Results 1 to 25 of 754
Page 1 of 31 1 2 3 4





Click Here to Expand Forum to Full Width

Featured