Yes I know I should be using a rebar but I am not. So please don't advise me to use a rebar. I use the following code: CRect rect; int nIndex = m_wndToolBar.GetToolBarCtrl().CommandToIndex(ID_SYSTEMCOMBO); m_wndToolBar.SetButtonInfo(nIndex, ID_SYSTEMCOMBO, TBBS_SEPARATOR, 125); m_wndTool...
Hi folks, I meet some problems while I am using the Debug of Visual Studio 2005 on XP. 1) When I clicked "Starting Debugging", it displays as follows in the output area:'STL.exe': Loaded 'C:\Programming\STL\debug\STL.exe', Binary was not built with debug information.'STL.exe...
Basically, I have a list of integers in a text file and within the values there is a negative numbers/letters/ etc mixed up. So, what I have to do is output an error rather than the conversion(decimal to binary). I got the negatives covered, but here is what I am doing to locate letters:int x;x = -1...
Hi. I have to display some information in a list control on a CFormView. Hence, I used the resource editor and just put a list control and setting its style to Report. Now, using the wizard, I added a member variable to the list control to work with. And, I had a code to help me out to do it. Zafir...
Currently I have a win xp driver written in VS 6.0 C++. I want the same driver to work in Win CE 4.2 for example. How do perform the porting process? Thank you
1596 byte By
SkaR3D at 2007-11-20 11:39:16
Hi im new to dev-archiveIm very new to C++ so I would appreciate it if people could fill me in on the terminology.I thought for sure some one would have asked this already, but i don't see any posts concerning this.I've been reading a little about C++ and I decided I should try to create t...
501 byte By
mce at 2007-11-20 11:39:17
i need to access CMSHFlexGrid (a windows control supplied by VC++) get methods from a DLL project. I have tried to insert CMSHFlexGrid to a MFC dialog project and then copy over the generated source files and try to compile in my Win32 DLL project. However i am getting full of compile errors, 80 of...
129 byte By
Lannie at 2007-11-20 11:39:25
Hello,<br/>Does visual C++ support unsigned int? If yes, is its values supposed to range from 0 - 4294967296?<br/>thank you.
How to parse VBA script file in MFC ?I want the following information from the VBA macro file,1. Number of modules in the script.2. Name of all the modules.3. All the function names in the given modules.Is there any scripting engine ?Any help would be appreciated.Thanks and Regards,Paresh....
How to add progree bar in MFC.Give me some example.
I have to read a custom file that has multiple images in it and data associated with each of the image. File is structured file and tags are associated with all the information. Can you please get me any sample code for reading such files?
1628 byte By
tootypegs at 2007-11-20 11:39:33
Hi, my aim is to get a handle on my USB device, and dismount the USB drive (I would also like it to remount straight after but i will crawl before i can walk). I have worked out that FSCTL_DISMOUNT_VOLUME could be what i need and ive had a go at putting something together but it doesnt work. Can any...
806 byte By
mce at 2007-11-20 11:39:34
I need to get this to work urgently. Yes, Windows object should best be accessed within the same thread that created it.But for good reason, i need to do the following. And according to MSDN, This should work too! Since CMSHFlexGrid is a CWnd object too, why am i getting assertion then?UINT ThreadFu...
183 byte By
ikcha at 2007-11-20 11:39:36
in vc2005(mfc), need to convert cstring to string.<br/>string a;<br/>CString b;<br/>how about?.<br/>a = b;<br/>in vc2005, what is best and safest method to convert CString to string?.
710 byte By
iron59 at 2007-11-20 11:39:39
Good Day Guys. I need some advice regarding my C++ Project.Here's the problem:I have a C++ Project that I developed in an old PC. The Program works properly but then when I transferred the project files to another PC, it threw an unhandled exception specifically "access violation". the exceptio...
Hi alli m having a problem in implementing a template function for additionthat funtion looks like thistemplate< class T >T add( T a , T b ){ return ( a + b ) ;};But for a case when i will give it string to add then it is giving error because it is passing const pointer.......and addition of p...
229 byte By
lpn_com at 2007-11-20 11:39:47
I play the wave from resource:<br/>PlaySound("MY_WAVE",0,SND_SYNC|SND_RESOURCE); // first<br/>PlaySound("MY_WAVE",0,SND_SYNC|SND_RESOURCE); // second<br/>work only first function, the second return false and no sound =(
1396 byte By
umeshp at 2007-11-20 11:39:48
Hai all, I am new to windows programing. I have used a Combobox and listbox in my sample program which i want to populate... I undestood how to do it in MFC.. But I want to know how to do it in non MFC windows program.. wat I did wascase WM_INITDIALOG:{HWND hComboBox = ::GetDlgItem(hDlg, IDC_TITLE)...
285 byte By
rutu at 2007-11-20 11:39:51
Hi,<br/> I am having Bitmap Buttons on the Dialog Bar. But the buttons are having borders which are visible. I want buttons like tool bar when ever i ll take curser over the button then only it will show the button border otherwise it will show only the Bitmap. How to do this?
2671 byte By
flynny1st at 2007-11-20 11:39:52
Hi i want to wrtie a method for reading in a bitmap and looking at each pixel.i have the following but it doesnt seem to be working can anyone tell me what i'm doing wrong.basically, it compiles and gives me output but whn i compare thergb values its outputting against the pixels in the file th...
6684 byte By
kasru at 2007-11-20 11:39:54
Hi,This code works on SQL Server, Oracle, but does not work on DB2.What's problem?/*create table EventTable(TimeStamp char(100),AppName char(100));*/#include <stdio.h>#include <tchar.h>#include <atlstr.h>#include <atldbcli.h>#define LOG_TRACE printftypedef CStringT&l...
I get the following message when debugging my app:Unhandled exception at 0x0043907e in Temporal.exe: 0xC0000005:Access violation reading location 0xcccccccc.This is the function causing the problem:string GetString(uint resId, ...) { string str = new Char[255]; int len = (int)wcslen(str); LoadStr...
369 byte By
Ajami at 2007-11-20 11:39:57
Hello,I declared a structure in one class.public:typedef struct{ unsigned int texID;}Textureimages;Textureimages texture[2];When ever I try to access texture[0].texID from another class derived from the first class I get an undeclared identifier error message.What am I doing wrong.Thanks,...
I am getting an error "debug assertion failed" when i run my code.I suspect that the error is in the following code segment. The code is the basic implementation of a tree. struct treeNode{ struct treeNode* parent; struct treeNode* left; struct treeNode* right; int data; char a;};struct treeNode *ro...
Hi everyone,I am using a combo box with a dropdown list. In the drop down list i am listing few options for the users to select.After the user selects an option from the list box , i want want the combobox to be static, that is the user should only be able to select the options listed in the drop do...
I Have two radio button and i have enabled 'Group' Property for one of the radio button.When i launch the application the both the radio buttons remains unselected, I want one of the radio button to be selecetd by default when the appliaction starts up.Please help me RK :-)...
151 byte By
kranti at 2007-11-20 11:40:03
Hi,<br/> I am trying to get font style name from Cfontdialog but unable to get it.<br/>How can i get font style name? can anybody plz help me out...
I = _putenv_s("DEFAULT_REGION",cStrSelectedRegion);I am using the function _putenv_s to write a new environment variable, as the signature of the function it accepts the name of the evn variable and the value to be written inside which is a const char *now i have the value as CString variable , i ne...
2616 byte By
DeepT at 2007-11-20 11:40:05
I have had this long standing issue with finding out if another process is still running. It seems simple, but there are special conditions that cause things to work improperly. I have set up a tester to help me deal with this and something interesting happened.Let me first explain the setup I a...
1179 byte By
flynny1st at 2007-11-20 11:40:08
Hi guys,hope you can help here. I basically want to save a subsection of a HBITMAP. so i have a bitmap say 100 x 100 pixels and i want to pull out and save say 10 by 10 from coord (5,5,)i have written the following code which compiles however, the bmp it outputs is of the right size but is just blac...
862 byte By
GeoffH at 2007-11-20 11:40:09
Hi,I need to learn MFC COM for work. Are there any de facto books on learning it/them?I'm working on a solution involving native C++, CLI, and C# (CLI of course is the wrapper for the native libraries). It was suggested to me that we include COM in the mix for increased ease of interoperability...
Hi, my plan is to develope a small program that reads a device. For example, If i had a thumb drive, i would like to develope a program that can read the thumb drive showing me the file structure and all files on the thumb drive its self. Can anyone give me any advice on where to start? any pointers...
3071 byte By
kpatel at 2007-11-20 11:40:30
I really need help on this one. I can put the ambiguious code in my code and out product can not ship due to the ambiguious code. I am trying to make our application work on vista, it was working till now but in vista the drag and drop functionality does not work. Upon investigation we found out tha...
1382 byte By
khenzel at 2007-11-20 11:40:31
Hello everyone.I'm working on a typing tutor project... what i want is to have a bit of code pull a random word from a list i have stored in a function to display on the screen for the student to try to replicate.i'm having great difficulty trying to figure out how to do this. can anyone...
1176 byte By
khenzel at 2007-11-20 11:40:32
whats wrong with my code?i'm trying to compare 2 strings... and come back with a value for the number of characters in that word that dont match up.i know with the string.compare(x,n,str) comparison it returns a 0 for each letter that comes back correct... but somehow it doesnt seem to work......
Say I have a list of numbers and that my program is only supposed to deal with integer values... Does anyone know a simple way to determine if one of the values is a decimal (like 5.6) , output a message and skip it?I already know a way to locate letter and output an error message, but the if statem...
536 byte By
a.gilani at 2007-11-20 11:40:34
Hi,I just started learning C++ and wrote the following code. It basically asks the user to input to input two integer values, then asks him to choose +,-,*,/ and which outputs the result. the problem is that the program terminates when i choose to divide. The odd part is that the program builds perf...
Hey<br/>I am trying to find a way to download files and set their contents as a string. If this is not possible, then saving it to a temporary directory will be fine. Anyone know how I can do this?
800 byte By
lypun at 2007-11-20 11:40:37
Let me preface by saying I do not have a lot of experience in programming in visual C++. And yes, I've done a forums search; I've also searched the internet for tutorials and such. But I think my question is so profoundly stupid that there's nothing written on this - as far as I can...
582 byte By
ryu at 2007-11-20 11:40:49
Hi GURUs,I want to be able to find out whether a specific number is 2^x or not.For example:64 --> yes, it is a 2^632 --> yes, it is a 2^524 --> no, because it is not part of 2 power of x.8 --> yes, because it is 2^36 --> no, because it is not a 2 power of x.My question is, given a spe...
276 byte By
faisals at 2007-11-20 11:40:50
i want to create a folder(i know in c we call it directory) by retreiving date and current time.i.e first time and then date for example hr:min:date.I have retreived system date and time.I have used CString for holding all these info.How can i cxreate a folder by C++ commands
Hi all,I want to make 5 exe's from 1 project only...how to do it? suppose i want to make a set up program in which i want that a main exe that will take various exe's as input and path , a extractor, my uninstall exe and then a setup exe which will place all the given exe's at a menti...
431 byte By
imtwo at 2007-11-20 11:40:56
Hi aLL; i want a matrix class class matrix {private: int row1; int col1; int row2; int col2; public: matrix(); matrix(int,int,int,int); void input(...); void add(); void multiply(); void transpose(); virtual ~matrix();};the code file is basically my need can any one help m...
164 byte By
gossip at 2007-11-20 11:40:57
Hi,<br/>Is there a way to make a window of another process (i.e. an exe) to be a child window of a dialog ?<br/>Anybody has idea ? Thanks,<br/>Gossip
Hi All, I have read many forum answers on this error but I could not found solution. I am using MFC Application in VS 2005. I my application I have created one .dll file named VNCHooks.dll which is running before the my MFC solution .exe file. Now when I run it uising F5 I got tjhe error like below....
Hi<br/>can any one tell how can i do ,when we click the different child node in tree control, i want to display different bitmap image on the dialog box when i click to each child node as my option <br/>regards<br/>vasanth
3363 byte By
rydzx at 2007-11-20 11:41:02
Hi there...i`m new in programming language...today i learning algorithma for writing source code...these program below will get student information from user...##################################################include <iostream.h>#include <string.h>#include <iomanip.h>#include <...
Hi,-----------Test.cpp------------main(){char *p = "Hello";char *s; while((*s++ = *p++) != '\0') ; cout << s;}-----------------------------Why this progam is giving memory exception?syntax wise as per my knowledge it is correct(I did in "C" language)?Please suggest what is the pro...
hello,<br/>I am writting a dialog based application ,and i want that when i click on it's exe it will run in hide mode, plz tell me how can i achive it.<br/>Thanks
Hello,<br/>I want to write the code through which i can run another dialog based application and i want to hide the dialog by my code...pl z tell me how to do this<br/>Thanks