trying to addicon to program problem hello i got problems with UpdateResource api in whish it doesn't even does anything it either corupts program with small programs and with big programs and it doesn't do anything [code] #include <stdio.h> #include <windows.h> #define MIN 2 char *ReadFile(char *SzFile,int *BytesCount) { int fSize; FILE ... 25 Oct 2009 08:44
add text in existing file problam I am tring to add some text in existing file but it doesn't work.I am using this code code: HANDLE hfile; DWORD din; TCHAR *programa[256]="some text"; TCHAR KEY[2]; hfile=CreateFile("file.txt",GENERIC_WRITE, 0,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0); int size=GetFileSize(hfile,0); SetFil... 11 Nov 2009 04:32
Form load event Hello all. I am using VC++6 and MFC. What I am trying to do seems fairly simple and straightforward (at least, it does to me tongue.gif). Basically what I am wanting to do is trap an event that occurs when a dialog box is shown to the screen, but I only want it to happen once (being the first time that the for... 27 Oct 2009 03:43
Question about win32 C++ roles Hi all, I've been noticing job adverts for high end win32 C++ developers for 2 companies 1. Waterfront International Limited 2. Quantres In both cases I can't seem to find any background on these companies, googling them only provides pages where similar people are ask the same questions "who are they", I'... 21 Oct 2009 07:05
MSXML - Is this supposed to be XPath? Hi Folks: I'm trying to put together, or find something someone has put togeter, that will behave the way XPath is defined to behave. I've attempted to write a utility based on the code presented here: http://msdn.microsoft.com/en-us/library/ms754523%28VS.85%29.aspx My utility runs, and will parse... 23 Oct 2009 09:57
XSLT messages with DOM smart pointers in C++ Hi, how can I retrieve the messages (xsl:message) from a xslt script using MSXML3 DOM with smart pointers in C++? On MSDN there is a sample how to do this with C#. They add an event handler with the address of a callback function to an argument list and pass the arglist as a parameter to Transform(): // Create ... 19 Oct 2009 03:07
What's a CLSID_AddObject? Hi Folks: Developing on XP Pro, VS 2008 Pro, Win32, no MFC. I use COM objects others have created evey once an a while, with varying degrees of ease or misery. So I've decided to bite the bullet and go through this COM tutorial at CodeGuru: http://www.codeguru.com/cpp/com-tech/activex/tutorials/a... 15 Oct 2009 06:08
LVM_GETGROUPINFO Hi, I'm calling LVM_GETGROUPINFO message to retrieve Group information of a ListView. After getting LVGROUP structure filled with all the informations (it work correctly) the Group Header text of the listview is changed for garbage character like "[]s".... The weird things is that I'm getting all LVGROUP stru... 12 Oct 2009 10:39
DwmSetIconicLivePreviewBitmap Failed Hello, I'm trying to show my application like IE 8 does But when my application got WM_DWMSENDICONICLIVEPREVIEWBITMAP and I call DwmSetIconicLivePreviewBitmap it got it Failed :( I always received '-2147024809' when call DwmSetIconicLivePreviewBitmap I had see the C++ demo but I can't understand it :(, what is a... 14 Oct 2009 01:37
how to get list or enumerate files(handles) opened by process, Hi I´m trying develope console aplication that will retrive the path of current file opened by the process for example notepad. Let´s sey that in notepad++ I have opened 3 files . I need the list that look like: List: Notepad++: file1.txt file2.txt (curently edited) file3.txt I allredy have the list ... 10 Oct 2009 10:32 |