Problem with Active x control

414 byte By kranti at 2007-11-20 11:30:02
Hi, I need to place a color combo box in one of the property pages and i downloaded color combobox Activex control. It is running successfully but the problem is whenever i run my program and click that property page it is showing an about box saying that it is an unregistered version and to regis...

New to programming- Program communication

523 byte By percy123 at 2007-11-20 11:30:03
Hi all, I am new to programming and i need to build some sort of program that will allow me to establish a communication between two seperate programs. I basically require the record button in my camera software to be activated when another seperate program registers a value. I already have the two...

Related to Active Window

360 byte By Sumit.Dua at 2007-11-20 11:30:04
Hi AllI have a problem in following scenario, I need your helpMy main Application window is launching a process......When it launch it, then comand prompt running that process becomes active.But now i want again that main application become active over that command prompt.Can u plz help me in doing...

Problem with hash_map, find function!

1580 byte By break; at 2007-11-20 11:30:07
Hello,i need help with my hash_map in Visual Studio 2005!I have a hash_map and i can add items to map, but problem is when i try to find somethink in there, i know that my term i saved to map!// value for map:class CMyClass{ CString csName; CString csVName; int iAge; CMyClass() { iAge = 0; }};// ke...

Is OnMouseWheel() faster than OnLButtonDown()

1458 byte By Ajami at 2007-11-20 11:30:11
Hi All,Is OnMouseWheel() faster than OnLButtonDown(). I recignised this in my application.Invalidate(FALSE); does the same thing in both functions.It draws a map.void CMapWnd::OnLButtonDown(UINT nFlags, CPoint point) { CRect cr; GetClientRect(&cr); point.y = cr.Height() -point.y; //Zoom in if(p...

Overriding new and delete in DLL sometimes unpredictable

658 byte By chatsubo20 at 2007-11-20 11:30:14
I have a library A.lib and a DLL, B.dll. In B.dll, I have overridden the new and delete operators.According to my observations, when A.lib links with B.dll, calls of operator new in A.lib will use the overridden version of operator new in B.dll.But the function call of operator delete in A.lib will...

please help with IXMLDOMElement::insertBefore

1750 byte By vi at 2007-11-20 11:30:21
Hello All,I'm beginner and have some problem with processing xml. If somebody knows, please give me an advice or example of code.I need to use MSXML2::IXMLDOMElement::insertBefore method for inserting MSXML2::IXMLDOMNode into particular position of xml document.I try to do this in the such way:...

Font Size problem

183 byte By pri_skit at 2007-11-20 11:30:22
I am using CListBox(MFC Class) which have some strings added to it.I want <br/>to display different string in different font.Is this possible?How this could be done?<br/>regards,

Icon on a button

583 byte By Lars_V_J at 2007-11-20 11:30:24
I need to have a button with an icon on it. Not a bitmap, because that requires me to draw four different bitmaps (up, down, focus and disabled), and that would also require redesign of the button whenever there is a new windows skin.It must be an icon, because that will also make it transparent (in...

Bool Callback

907 byte By dellthinker at 2007-11-20 11:30:25
Hi all. Can someone give me a 'direct simple' explanation or where to find a simple explanation on how to use a BOOL CALLBACK? I know what EnumFunctions are and how their used. But for the life of me i cant find a simple explanation as to why i need to call BOOL CALLBACK when using these f...

CArchive Exception Handeling

1639 byte By Derwin at 2007-11-20 11:30:27
//code:.void MyApp::readB(CArchive* ar){. .int i,er;. .wBody wB;. .try{ . . .// don't worry about what this does:. . .for (i=0;i<world.bodies;i++){. . . .er = wB.Serialize(ar);. . . .world.bodiesarr[i].fromWB(&wB);. . .}. . }. . catch(CArchiveException...

I have a small problem

1027 byte By ghost_writer at 2007-11-20 11:30:28
when I try to output a set of data, the first set seems to be spaced one more time to the right. this is what parts of it look like:void reportTitle(){ifstream infile;string name;double rate;double hrsWorked;double taxRate;double grossAmt;double netAmt;infile.open("F:\\payroll.txt");....while(!infi...

Two classes for two panes

343 byte By Ajami at 2007-11-20 11:30:32
Hi,I have two classes CView1 and CView2.Each class is responsible for drawing one of the panes in a CSplitterWnd class defiend in the the MainFrm class.How can I access the member variables of one class from the second class and vice versa.Both CView1 and Cview2 are derived from CView.Thanks!...

Excel 2007 crashes after unloading Add-In

3647 byte By m4stermel at 2007-11-20 11:30:38
Hi there,I've seem to run into an interesting problem with an Add-In that I originally wrote for Excel 2003 and below, and then tried to run with Excel 2007. The problem is that even though my Add-In works perfectly while Excel is running, when I close Excel, shortly after the Addin's are...

does anyone have sample code for enable/disable using WMI C++?

204 byte By mase at 2007-11-20 11:30:41
I spent three days already searching about WMI and example how to disable and enable a device using C++ not VBscript, but I haven't found anything so does anybody have any sample code that I can use?

Weird problem with IDL property names?

1018 byte By kuang Cao at 2007-11-20 11:30:54
Hi,I am having a really weird problem with IDL property names. In one interface, I have the following property:interface IXXX{ [ propget, id(1), helpcontext(IMPLCLASSUID_CNTID) ] HRESULT ImplClassUID([out, retval] BSTR * pImplClassUID); [ propput, id(1...

ListView Selection help

663 byte By gbrooks3 at 2007-11-20 11:31:00
I'm trying to get the text of a selected item in a listview control. HWND hFileList = GetDlgItem(MainWindow->hDlg1, IDC_LIST3);LPTSTR szText; int i = ListView_GetSelectionMark (hFileList); if (i == -1){ MessageBox(0, "no selction you twat!", "blabla", MB_OK); } else{ ListView...

Scrollbar thumb problem

710 byte By Dan203 at 2007-11-20 11:31:05
I have a dialog box which has been setup to scroll when resized below a minimum size. The problem I'm having is that the maximum position of the thumb is less then the maximum range of the scrollbar. So for example if I set the scollbar's minimum to 0 and maximum to 300 I can drag the thum...

How to dock a dialog box

600 byte By s196675m at 2007-11-20 11:31:08
I have a SDI application. I also have a class derived from CDialog which has no no border but some control on it. I want to use this borderless dialog as a toolbar.Is it possible to dock this dialogbox into the SDI main frame. Frame window has EnableDocking, DockControlBar function which takes CCont...

Link error

487 byte By kevinmscs at 2007-11-20 11:31:12
Hi all,I compiled OK but when built i got these errors:Linking...project.obj : error LNK2001: unresolved external symbol _yyreturnflgproject.obj : error LNK2001: unresolved external symbol _yyparseproject.obj : error LNK2001: unresolved external symbol _yyinDebug/project.exe : fatal error LNK1120: 3...

Trying to go to functions(Noob)(easy question)

1118 byte By pastries at 2007-11-20 11:31:21
This is my little worthless program. What im trying to do is go to different functions from within other functions. Ive spent hours looking through tutorials, guides and google'ing with no results. What i am trying to do is in many parenthesis (((()))), i dont really need anyone to rewrite it,...

How to get fast anti aliased bitmap rotation??

243 byte By steverex1000 at 2007-11-20 11:31:26
hi all,<br/>this may seem to be very abstract.. i went thru many bitmap rotation methods but cant get a fast and also good quality bitmap after rotation.. Is there any way i can get atleast an optimum speed and quality bitmap after rotation??

Uninstaller

180 byte By amit_srms21 at 2007-11-20 11:31:28
hi,<br/>I am writting a program to uninstall the application ,but i want that after uninstalling the application uninstall.exe will get deleted ...plz tell me how to acchive this..

OpenCv lib

130 byte By coricori at 2007-11-20 11:31:29
hi there<br/>I have done a application in OpenCv but I need more than his highgui. How can I display a IplImage in a VC form?

Registry Restore

914 byte By nagadravid at 2007-11-20 11:31:30
Hi All,I m facing a problem while restoring backup files to the registries.I m trying to take bakup and restoring of registries, through a service. This is working fine when I m logged as an admin user.where as if I logged in guest user mode , able to take back up but unable to restore the same.Poi...

change static control style

546 byte By M** at 2007-11-20 11:31:34
Hi,how can I change the style of a static control during the programm?Around some static control has to be a border sometimes. create the control:HWND hwBtn = CreateWindow (TEXT("static"), pbtn2->normal, WS_CHILD | WS_VISIBLE | pbtn->iStyle | SS_CENTER | SS_NOTIFY , x, y, h-1, w-1, hwndParent...

Help Me

230 byte By amit_srms21 at 2007-11-20 11:31:36
hi,<br/>I am writting a program to uninstall the application ,but i want that after uninstalling the application uninstall.exe(through which i am uninstalling the application) will get deleted ...plz tell me how to acchive this..

problem with sdi application

341 byte By sulabh120881 at 2007-11-20 11:31:39
Hi to All,I want to create a sdi application with some splitter and controls and want to resize dynamically so that my application can be fit on any screen. And most important thing is that i dont want any predifned menu (like file, edit,view etc) in my window.Please tell me how can i do this.Thanks...

Time Zone Info

327 byte By djai at 2007-11-20 11:31:40
Hi to all,Im facing a problem in getting correct information from WMI in MFC. From WIN32_OPERATINGSYSTEM class in WMI there is a field called Time zone and it is giving me a value 330. I dont understand how to get text out of it. I mean to say region specific info like India Standard Time.Thanks in...

catching CException&

812 byte By albertopastor at 2007-11-20 11:31:42
Hi allI have a this try/catch blocktry{ ...}catch(CException& e){ ...}i'm trying to throw a CException inside the try code and catch it (by reference, is mandatory) but i can`t.if i do:throw CException();compiler sais:error C2700: 'class CException' : cannot be thrown (use -W4 fo...

Postmessage from a win32 dll to MFC application

405 byte By justlikedat at 2007-11-20 11:31:44
Hi Folks,I am trying to PostMessage() from a win32 dll to a MFC appliacation , butthe message is not reaching the application (I am handling this message in CMainframe class) .. I am in th edebug mode and I get an exception in IsKindOf() function , so the message is in the MFC area. What could be t...

Copying from unsigned char * to the CString

495 byte By ashishbhatt12 at 2007-11-20 11:31:48
Hi All,I have unsigned char * buffer in which some data are stored , now I want to move these all data to my CString variable for some operations.I tried to copy but problem is that in my unsigned char * some data are padded as zero, So I hope that in CString it gets the null value so it can not cop...

listbox & button

396 byte By Kushi1 at 2007-11-20 11:31:49
Hello,Im working on vc++ dailogs with listbox and button.In this i added some items to listbox. I want to set focus on list box items when ever i clicked on button(abcd). while clicking on that it should compare alphables of listbox and button. If alphabet of buttton 'a' is matching with...

Problem with Decorator Pattern

675 byte By __OTO__ at 2007-11-20 11:31:51
Hi all,I have an abstract class AbstractGeometricShape from which I subclass different GeometricShape. In order to add functionnality to the GeomtricShape, I use a DP decorator to create for example profils or transformations to the shape :boost::shared_ptr<ShapeProfilsDecorator> decorated_rec...

Help for Delay

233 byte By amit_srms21 at 2007-11-20 11:31:54
hello,<br/>I am using the batch file to delete my running application ,pl z tell me how to provide delay to the command ,which i have written in batch file.so that current Application will get close before deletion.<br/>Thanks

windows GUI application is terminated

823 byte By sunil pagare at 2007-11-20 11:31:55
windows GUI application is terminated from Initinstance() functionbefore starting message loop. This exe is launched using WinExec() APIby the another process started at windows startup.This problem is happened rarely on laptop machine. I reviewed the coderegarding overflow, variable corruption etc...

Using different menus

871 byte By mlaboss at 2007-11-20 11:32:03
During InitInstance in my MDI application, I grab a value from the registry that can be either 0 or 1, and store it in app_multiplexed. If it is 0, I want to use one menu for when a child window is open, and if it is 1 I want to use another. Here is the code from InitInstance:UINT resource;if (app...

Semaphore and consuming, producing threads

4874 byte By ironroot at 2007-11-20 11:32:04
Hi allMy problem is this for a class i need to creat creat some producing threads that will add an integer to a buffer and a consuming thread that will remove and integer from the buffer. I can creat the threads but one of the requirement is that the main function goes to sleep and when it wakes up...

Events

830 byte By tarunk at 2007-11-20 11:32:06
HI All, Is there any expert out there who can clarify few things about ATL COM Events.1. Is it possible to create an event on COM+1.0 object . I know it can be done with simple objects by clicking connection points?2. Say in a simple objects ISim , i have an event ISimEvents with method event1(sho...

2D Random Numbers

1501 byte By Eggman002 at 2007-11-20 11:32:11
I am trying to create a seeded random number generator that generates a number based on coordinates.int rand(int x, int y);Basically, given the same seed, every time this function is called, it will give the same random number for the same coordinates.What I am really aiming for is some sort of seed...

window search like tool (interface) like in spy++

545 byte By zspirit at 2007-11-20 11:32:26
I want to implement something very similar like the window search in spy++ tool. Like in Spy++ >> Search Menu >> File Window, a dialog comes up with Finder Window too. You grab this image and drop it on any window to extract information about it.I want to do almost similar to this except...

maximized button

82 byte By volkancin at 2007-11-20 11:32:28
How can i disabled to the maximize button? how should i use WS_MAXIMIZED constant?

text control with word wrap

217 byte By Dave C at 2007-11-20 11:32:34
Is there a text control that can be used in a VC 6.0 Dialog app that will automatically wrap displayed text to the next line? It also needs to allow text select / copy but does not need to be editable.<br/>Thanks

How can i display view window

702 byte By s196675m at 2007-11-20 11:32:35
HiI am trying to display a view window in response to a button click. This is part of my learning.Here is pseudo code:someclass:: OnbuttonClick(){// Approach 1CScrollView sView;sView.ShowWindow(SW_SHOW); // I want this view window display like modal or modeless dialog// Approach 2SCrollView* sView;s...

Copy contents from String table

209 byte By mradhakin at 2007-11-20 11:32:40
VS 2005<br/>VC++<br/>Hello,<br/>Is it possible to copy all contents in string table and paste in MS excel? If it is possible, then how?<br/>I appreciate your reply.<br/>Thanks,<br/>Muthiah.

How Can I move MDI child window out of the frame window

337 byte By s196675m at 2007-11-20 11:32:43
I want the child Window created in MDI application to move out the main frame window.Main frame is the parent of child frame, so it is always stays inside of the main frame. Is it possible by any means, so that I can move child frame out of mainframe.Your response will be highly appreciated.Thank yo...

Defining Winproc

681 byte By kevin112794 at 2007-11-20 11:32:44
Can someone please help me define winproc? I'm really having trouble with it. I have made my error have no errors except for this one and i have no idea what it means: 1>Win32App.obj : error LNK2019: unresolved external symbol "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int...

Is there some tutorial for networking using C++ ?

98 byte By Kukloprdos at 2007-11-20 11:32:49
Is there some tutorial for networking using C++ ?<br/>I could not find anything about this :(

hot keys

44 byte By mooso142 at 2007-11-20 11:32:50
can some one tell me how to make a hot key??

serial port function

546 byte By solosynergy at 2007-11-20 11:32:54
hi i am new to VC++ and want send data to my serial port.I am able to send String ^ type variables. but i am not able to send a single char or an array of characters. i.e char c, and char c[3] type i am not able to send. please assist.unsigned char tempc=0,CLATCH[4];// Code to enter data in CLATCH[]...