Search:

Type: Posts; User: UnclePunker

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,017

    Thank you, i was right it was a silly question....

    Thank you, i was right it was a silly question. Thanks again for the help.
  2. Replies
    2
    Views
    2,017

    MFC App Closing

    Hi,

    this is probably a silly question but I can't seem to find what is happening. I have an MFC app with 3 edit boxes, when you press return in any of the edit boxes it just closes the app, the...
  3. Replies
    5
    Views
    6,335

    I had just been reading the documentation wrong....

    I had just been reading the documentation wrong.

    I was trying to pass it an OPENFILENAME structure in the place it wanted a DWORD to modify the look of the dialog box.

    Instead I needed to edit...
  4. Replies
    5
    Views
    6,335

    Can anyone see what I am doing wrong?

    Can anyone see what I am doing wrong?
  5. Replies
    3
    Views
    1,817

    That is correct. You need to set up a...

    That is correct.

    You need to set up a structure of type BROWSEINFO to set up the dialog box. and set up a pointer to a structure of type ITEMIDLIST to get the return value of SHBrowseForFolder....
  6. Replies
    11
    Views
    1,910

    I may be missing the point but can you just...

    I may be missing the point but can you just subtract 64 from the ASCII value before you encode to binary.
  7. Thread: Visual C++

    by UnclePunker
    Replies
    7
    Views
    1,588

    to have it stop, tell it to return; so. ...

    to have it stop, tell it to return;

    so.


    if(!valid)
    {
    MessageBox("I said input a number, idiot", "Input Error", MB_OK);
    return;
    }
  8. Replies
    5
    Views
    6,335

    I just tried passing it a pointer to a char array...

    I just tried passing it a pointer to a char array and it has the same error when using the constructor.
  9. Replies
    5
    Views
    6,335

    Hi Kuphryn, thanks. I tried passing the...

    Hi Kuphryn, thanks.

    I tried passing the addrtess but it has teh same error.

    Here is my call:

    defdir.lpstrInitialDir = m_jobdir;

    CFileDialog findcpr(true, ".cpr", NULL, defdir, "cpr files...
  10. Replies
    5
    Views
    6,335

    CFileDialog Initial Dir

    Hi, I want to open an open file dialog, I can manage it fine, the thing I am having the problem with is telling it a different default directory.

    I have created a structure of OPENFILENAME and am...
  11. Replies
    6
    Views
    1,068

    You have to look for common elements of the...

    You have to look for common elements of the things you are looking for, like do the flight numbers have a consistent prefix.

    Or if you file is delimited and has fields you can read in a line and...
  12. Replies
    16
    Views
    4,483

    Thanks a lot anyway, everyone who helped. I have...

    Thanks a lot anyway, everyone who helped. I have got it working now, I will look into the _variant_t thing further as I am still not entirely sure how it works. I understand what your saying it does...
  13. Replies
    16
    Views
    4,483

    My god Fordy, nice one. All your other code...

    My god Fordy, nice one. All your other code looked very impressive, but this is the bit I am most interested in. I don't really get what it is you are doing here, I have added it to my program and...
  14. Replies
    16
    Views
    4,483

    Thanks TheColonial. I have tried assigning thae...

    Thanks TheColonial. I have tried assigning thae VARIANT value using just parampass, but it has a compiler error saying cannot convert from 'unsigned short *' to 'unsigned short **' which is why I was...
  15. Replies
    16
    Views
    4,483

    Thanks a lot for that TheColonial. I have got...

    Thanks a lot for that TheColonial.

    I have got further on and have actually managed to get it to compile, but when it comes to the SaveAs bit it errors. here is my code, it may not be the tidiest...
  16. Replies
    16
    Views
    4,483

    Sorry about this I am being a bit stupid I am on...

    Sorry about this I am being a bit stupid I am on my way to working out how to use it. I get now that the VARIANT can be many thing, and you have to set what type you are using usig the VT flag, I am...
  17. Replies
    16
    Views
    4,483

    Yes sorry I have tried every attempt at passing...

    Yes sorry I have tried every attempt at passing a string or an address of a string or pointer. Thanks for pointing out about VARIANTs, I realise that a VARIANT is a structure, but reading into it I...
  18. Fair enough. Your second explanation of the...

    Fair enough. Your second explanation of the situation was a much nicer and more coherent way of saying he could find out more using the power of google than saying "Learn to search". But I apologise...
  19. I don't see why people have to be like that, if...

    I don't see why people have to be like that, if you don't want to help then don't help. Leave it to someone who does want to.
  20. Replies
    16
    Views
    4,483

    Thanks for that. Unfortunately it hasn't helped....

    Thanks for that. Unfortunately it hasn't helped. The examples it uses are in VB not in C or C++.

    When I try and pass the document name either as a string or a literal string it errors, I have...
  21. Replies
    16
    Views
    4,483

    Saving a document using Word COM

    Hi I have searched the net and my MSDN disc this time and I don't get it.

    I have created a word document and made it visible and all, now I want to save it to a specific location, but I don't...
  22. Replies
    1
    Views
    1,602

    Sorry people I had been browsing my MSDN disc for...

    Sorry people I had been browsing my MSDN disc for ages and not found the answer, I browsed MSDN on the internet and found it almost instantly.

    basically the answer for me is use a function called ...
  23. Replies
    1
    Views
    1,602

    SHBrowseForFolder

    Hi I need to get the path of a folder for a program I am writing, I have to be honest I am winging it a bit sort of understood the SHBrowseForFolder class so far, and managed to get one open and get...
  24. Replies
    3
    Views
    1,329

    Thanks, that will probably help, it's gonna take...

    Thanks, that will probably help, it's gonna take me a while to understand it properly though.
  25. Replies
    3
    Views
    1,329

    Folder listing

    Hi using MFC how could I go about getting the listing of folder on a certain drive, say I get the user to choose the drive from a drop down box, how can i then look at that drives contents, but...
Results 1 to 25 of 134
Page 1 of 6 1 2 3 4