HrESEBackupSetup + BACKUP_TYPE_FULL_WITH_ALL_LOGS = problem

478 byte By _hunter at 2007-11-20 10:06:42
Greetings...I have some strange problem with this function (HrESEBackupSetup): if I pass BACKUP_TYPE_FULL_WITH_ALL_LOGS flag to it -- it returns 0xC7FF1004L (hrErrorFromESECall) and GetLastError() returns 0xfffffc7c (unknown code).But if I pass BACKUP_TYPE_FULL to HrESEBackupSetup -- all works fine...

Problem with GDIplusShutdown

913 byte By bidesh at 2007-11-20 10:06:43
Hi all,In my project i have to draw certain solid lines and circles. I used Gdiplus graphic api's. I created a static lib for that.The problem is that i found a memory leak in the lib. When i used the lib in a dialog box to show some charts certain Gdi object is created (i found it in windows t...

Computer wake up

148 byte By Chirieac at 2007-11-20 10:06:54
Hello!<br/> Can I wake up a computer from standby/hibernate from another computer using internet connections?<br/> How?<br/>Thank's!

newbie question, hmenu item click?

590 byte By 3D-Philly at 2007-11-20 10:08:48
hi chaps,can anyone tell me how to detected when a hmenu item has been clicked?i have the following to make my menu, now basicly i want to code the rest but im not sure on how to detect if its been clicked.HMENU trayMenu = CreatePopupMenu();;AppendMenu(trayMenu, MF_STRING, 101, "Enable");AppendMenu(...

Created a property sheet & attempting to make it minimize

3023 byte By Phantal at 2007-11-20 10:08:54
It seems to be working, but on some machines it won't minimize and I do not understand why. The code is fairly straightforward. To sum up, I create the PROPSHEETHEADER and PROPSHEETPAGE structs, initialize them, and create the window using PropertySheet(). I only need the property sheet dial...

Microsoft Paint Simulated Mouse Click

1256 byte By Fromethius at 2007-11-20 10:09:03
Hello everyoneI'm trying to write a program in native c++ code that will do this:When drawing in MS Paint and I press the P key on the keyboard, the Pencil tool will become the current tool.I really want to stay away from installing drivers, injecting dlls, reverse engineering, and many other c...

to get appropriate structure or MFC class

338 byte By johny555 at 2007-11-20 10:09:23
I am new to vc++ and of course for MFC CLASS. SO, plz help that how can i get an appropriate structure or MFC Class for the project in easier way or everytime i have to go for internet help or some one else.Provive me proper procedure ,how to get the app. MFC Class for my projects in easier way a...

CodeCleaner

227 byte By Rehorav at 2007-11-20 10:10:08
I have an interest of writting my own CodeCleaner, delete spaces if there are multiples, turn [5] into [ 5 ], etc. Does anyone here possibly know anything about them? Have any resources or something of the sort on CodeCleaners?

win32 tutorial

521 byte By nitin1979 at 2007-11-20 10:10:09
Hello friends me want to work on win32 (c++) not VC++ only may be some other IDE like code::project . Can any one give me good link to learn win32 programming step by step. If is very useful for me if any of you can provide me good link of tutorial for step by step developing win32 application. usin...

Reading from text file

7 byte By gbrooks3 at 2007-11-20 10:10:11
deleted

Hide process

286 byte By Chirieac at 2007-11-20 10:10:47
Hello all!<br/>How can I hide a process from Task Manager?<br/>I've read somewhere that is posible with kernel-mode driver? What is that?<br/>Ex: I have to apps. I want to "inject" one into another so that Task Manager show only one process.<br/>Please help! Thanks.

Sending WM_SETFONT during WM_INITDIALOG crashes ... sometimes

1390 byte By Zaccheus at 2007-11-20 10:11:26
I've been tracking a strange intermittent bug in my hobby code which only seems to happen if I run an application via a debugger with an anti-virus program running (Virgin/NTL's free anti-virus package) and even then it only happens the first time I run it after a re-compile !A very simple...

AltGr and WM_CHAR

244 byte By john17 at 2007-11-20 10:11:27
Is there a way to detect AltGr ( http://en.wikipedia.org/wiki/AltGr_key) keystrokes from the WM_CHAR message? I am able to detect everything with WM_CHAR expect keys generated from the AltGr key found on international keyboard layouts. Thanks.

how to get the handle for many printer.

1100 byte By RAJEEV VERMA at 2007-11-20 10:11:53
i am working for project in which i have to get the change notification for the printer ,it may when name changes.I have used the structure from MFC for printer that are:openprinter(), FindFirstPrinterChangeNotification() , WaitForSingleObject(),FindNextPrinterChangeNotification(),PRINTER_INFO_2, PR...

minimize a dialog to system tray

361 byte By shalinicodeguru at 2007-11-20 10:12:09
Hi,i want to hide an application to system tray. but my dialog has no title bar. i manually create a button to minimize it to task bar for that i write a one line code that is..void CddddDlg::OnMinimizeButton(){ this->ShowWindow(SW_MINIMIZE);} what should i do with this button to hide my dialog...

[RAS] Setting client IP without phone book

945 byte By hugodejong at 2007-11-20 10:12:34
For the past few days I have been struggling to open a RAS connection to a remote server, while manually setting the client's IP address. DHCP isn't available on the remote host, so it's necessary to specify an IP address.Now, my question is: how can I set the client IP when not using...

CreateDirectoryA can not be resolved

595 byte By George2 at 2007-11-20 10:13:19
Hello everyone,I am developing a DLL project for Windows Mobile (C/C++). I have removed the UNICODE and _UNICODE definition from project --> settings. But build the following code, there is an error (compile could pass, but link can not pass),error LNK2019: unresolved external symbol CreateDirect...

RegSetValueEx

359 byte By George2 at 2007-11-20 10:13:22
Hello everyone,I find that when using Debug build, we do not need to set linker --> input --> Advapi32.lib, but when using Release build, we need to set linker --> input --> Advapi32.lib. Or else, there will be error message, unresolved symbol RegSetValueEx.I am using Visual Studio 2005....

Plz Help Me:

672 byte By RAJEEV VERMA at 2007-11-20 10:13:37
Hi , i want to know that is their any method to pass handle to the printers attached to your network for change notification. I have been working for it with OPENPRINTER() which only pass HANDLE to one printer at a time.Further all other structure for notification related to printer that is:Find...

Getting data from statically loaded DLL

1998 byte By anders2 at 2007-11-20 10:14:04
Hi AllI'm writing an app that is getting data from several statically loaded DLL:s, one DLL at a time. My application loads a DLL and gets some data held in a structure. This seems to work. It uses the data and then unloads the DLL. Then it loads another DLL (with the same structure) and tries...

Browsing files?

416 byte By pontusen at 2007-11-20 10:14:41
So, I'm writing a simple ftp client and (naturally) I want to browse files/folders like in flashfxp or other similar interface, the "choose file" dialog/thingie is not what I'm looking for. How can one implement this?Also, the server responds to "list" with one line of info per file/folder...

RasSetEntryProperties

6406 byte By danmartins at 2007-11-20 10:14:50
Hi all,I'm using RasSetEntryProperties to create a new Dial-Up connection. The connection is actually created - it appears as a conection on the Connections windows - but I can't dial through it or even open it's property box. I tried to fill as much RASENTRY information as I could an...

Child process inheriting all handles

869 byte By CalamityJake at 2007-11-20 10:17:20
Hi, We create a process using CreateProcess(), whose stdout and stdin are redirected to two pipes created in the application. We use bInheritHandles = true as parameter to CreateProcess(), so that those handles are inherited. The problem is, the child also inherits all the other handles opened in th...

White Balance problem in DirectShow

1059 byte By silentray at 2007-11-20 10:17:21
Hi all,I am writing a video capturing application using directshow. One of the functionalities is to allow users to adjust brightness, contrast and white balance through the user interface. The video input device I am using is a Logitech webcam which supports DirectShow.I have done brightness and co...

find resource of dialog in DLL

547 byte By ashukasama at 2007-11-20 10:17:27
hi all,is it posssible to retrive the Resource of dialog form One DLL.and use in my application in DialogboxParam() function .our client dont want to change in dll. he want to use dialog resource from Dll and want to write our callback function to handle all message in my application.I am not able t...

MFC, window state detection.

136 byte By Fatboy at 2007-11-20 10:17:47
In MFC, how do I detect when my window is partially or wholly covered by another window? This is urgent, thank you very much in advance.

GetClassInfo

415 byte By jijo_robert at 2007-11-20 10:18:45
I am trying to get the control name of another control using following code. I am not able to get anything back StringBuilder className = new StringBuilder(256); Win32.GetClassName(hWnd, className, className.Capacity); Win32.WNDCLASS wndclass = new Win32.WNDCLASS();...

How to create resources in Code::Blocks

989 byte By temuyin at 2007-11-20 10:19:12
Dear Forum,Newcomer here...sorry if Ihave posted in the wrong forum...Im trying to grasp the Win32 API, coding under XP, using Code::Blocks IDE and the resource editor "Resource editor 1.1.4.2" http://www.radasm.com/resed/With the resource editor I have created a resource file containing two new ico...

first step

255 byte By coricori at 2007-11-20 10:19:36
hi there<br/>all my experience in programming is with ms-dos C++ (no win32, visualC).<br/>can you tell me how to use Windows API in my console applications?<br/>many thx<br/>can you provide me a good link with tutorial from where to start??

SetFocus() in WM_INITDIALOG

972 byte By Donotalo at 2007-11-20 10:19:57
I've an edit control whose ID is IDC_EDIT_CONVERT_FROM in a modeless dialog box. This is not the first control defined in the dialog box resource file. I want to set keyboard focus on this control when the dialog box is initialized. My attempt goes like this:WM_INITDIALOG:...SetFocus(GetDlgItem...

Using const_cast<LPTSTR> with LVM_INSERTCOLUMN

921 byte By Zaccheus at 2007-11-20 10:19:59
I'm creating a list view and need to insert some columns into it.I think the following code is quite safe because LVM_INSERTCOLUMN does not modify the string which pszText points to: const std::string columnHour = loadString(IDS_LOGGING_HEADER_HOUR); LVCOLUMN column; ZeroMemory(&column...

ActiveX without MFC

199 byte By drew_canitz at 2007-11-20 10:20:46
I would like to learn how to make a simple browser embedded activex control WITHOUT using MFC. Does anyone have any suggestions of where to start? Any good online tutorials that anyone knows about?

Short-cut menu (right click) problem

1108 byte By dosh at 2007-11-20 10:21:28
I am having a problem setting up a right click menu. I get it working however I am not seeing the text for the menu just a small box with a space for each option.The resource fileincludesPopupMenu MENU { MENUITEM "Undo",IDM_UNDO MENUITEM "Cut",IDM_CUT MENUITEM "Copy",IDM_COPY MENUITEM "P...

[RESOLVED] Neverendinf story - memory leak detection

886 byte By l00p1n6 at 2007-11-20 10:22:07
I have 2 leaks that appear in my applicationI have used some proposed techniques:1: http://www.codeproject.com/debug/debugtips.asp?df=100&forumid=1257&exp=0&select=459007#ifdef _DEBUG #define _CRTDBG_MAP_ALLOC // include Microsoft memory leak detection procedures #define _INC_MALLOC // exclu...

shell commands problem

820 byte By indigojoker at 2007-11-20 10:22:53
So I've been playing around with shell commands and it seems like there's two ways of doing it.One could write in the C++ code something like:system("rm file.txt");and running the c++ code would do it. Another way is this:create a file named tempin the temp file, you could write:rm file.tx...

SetWindowLongPtr gives warnings C4244 & C4312

1329 byte By bidesh at 2007-11-20 10:23:27
Hi,I have a code sinnept in my project like this...m_WndProcVariable = (WNDPROC) SetWindowLongPtr( GetDlgItem(m_handle, ID_SETDLG), GWL_WNDPROC,...

How to get hdc and pixel from window with sendmessage?

1029 byte By fonx at 2007-11-20 10:23:50
Hello, I want to get some pixels of a window that doesn't belong to my application, I mean that I have a window of a program and from my own application I want to get pixels of that window.Well, so I need the hdc and perhaps using that hdc I could get the pixels I want. But I think that perhaps...

"Syntax Error" when creating dialog resource

702 byte By temuyin at 2007-11-20 10:24:03
Dear Forum,First of all Im working with Code::Blocks IDE (GNU GCC) under XP, and ResEdit 1.3.6 (by Julien Auro) resource editor.Im trying to add a dialog reasurce to my application, though I always get the same error message: " windres.exe Resources.rc syntax error"The error always refer to this li...

File locking

353 byte By standby1 at 2007-11-20 10:24:38
How can you find out who own the lock on a file. Also does anyone know how to create a lockfile that I can create that will allow my program to know that a copy is already running. My program will also need to be able to test to see if a valid process still owns the lock on the file in case of a sys...

DLL Load issue

525 byte By George2 at 2007-11-20 10:24:46
Hello everyone,I am developing a DLL and I implement a class in the DLL. I am wondering in the two situations,1. DLL is loaded by a single process multiple times2. DLL is loaded a couple of times by multiple processHow much times will the constructor be invoked? I want to learn how objects inside a...

how to use TranslateAccelerator() and IsDialogMessage()?

16 byte By aneird at 2007-11-20 10:24:49
give a example !

Problem while hooking GetOpenFileName Dialog

730 byte By bidesh at 2007-11-20 10:25:13
Hi all,I am trying to devlop an image previewer. I used GetOpenFileName dialog and OPENFILENAME structure.I prepared the OPENFILENAME mentioning the Flags member as OFN_ENABLEHOOK and lplpfnHook giving a dialog proc name.The dialog proc gets called, and in the WM_INITDIALOG message i tring to create...

msdn sample

18847 byte By coricori at 2007-11-20 10:25:46
hi therei've tried a sample from MDSN but i have some errorsError 1 error C2146: syntax error : missing ';' before identifier 'HDWP' c:\program files\microsoft visual studio 8\vc\platformsdk\include\winuser.h 42 Error 2 error C4430: missing type specifier - int assumed. Note...

How can I auto-kill a Windows process?

992 byte By mattschmatt at 2007-11-20 10:26:28
I need to be able to identify a process that is hung or running too long and kill it automatically.Here is the scenario. I'm supporting a web server that populates PDF on the fly with ASP and a COM object. The COM object uses an API call to Adobe Acrobat and acrobat.exe appears in the Processes...

disable window resizing

153 byte By g3RC4n at 2007-11-20 10:27:18
this may seem a bit simple but i really can't find how to do it, so how do you disable window resizing?<br/>this is for a minesweeper clone btw

Writing an Antivirus

162 byte By Chirieac at 2007-11-20 10:27:31
Hello!<br/>I want to make a small antivirus.<br/>How can I block programs?<br/>How can I know if my antivirus is not blocked by a virus?<br/>Thanks! By!

Copy Constructor

317 byte By lfcdm at 2007-11-20 10:27:33
Hi, I have a question about the copy constructor reference argument.Let's take the Class A and its copy constructor A::A(const A &src )Can I conclude that means this is always going to be an "A" and never a derived class being typecast into an "A" ?Thanks for your help....

Sutdown/Hibernate

187 byte By Chirieac at 2007-11-20 10:28:19
Hello!<br/>How can I make this:<br/>When I go to "start/Turn Off Computer/Turn Off" my computer to enter in hibernate/stand by. Is there a way to hook this?<br/>Thanks! By!

COM data sharing

951 byte By George2 at 2007-11-20 10:28:31
Hello everyone,I am developing a COM DLL (native unmanaged C++ using Visual Studio 2005). I have the following requirements and I am wondering what technology should I use to achieve my goal?1. The COM DLL will be used by multiple different applications (processes), and for some COM objects, I want...

IInternetSecurityManager problem

850 byte By yaniv_av at 2007-11-20 10:29:29
Hi, I have a webControl which load a local page that try to set a cookie and fails because of the zone security model that limits the cross domain action.So, I'm trying to implement a custom IInternetSecurityManager in order to enable the cross domain data action. I'm using the SecuMgr exa...