DLL to change label color

212 byte By dexxa at 2007-11-20 11:24:30
i have some labels in a gui that i want to mess with. i want to change their color with a dll call. i know there are some other easier ways to do it, but is there a dll functions that can do such task? thank you.

A very very amazing problem about "redefinition; different basic types"

962 byte By zc0000 at 2007-11-20 11:24:32
When I use vs2005 to compile a trivival c code ( I configure the project as "compied as C" ) , I found that , if I write two function code as bellow:void sort(){ filterDown();}void filterDown() {};which indicates that I suffix a function returning "void" to the previeous function , the compi...

Listbox search problem

614 byte By Driek at 2007-11-20 11:24:33
Hi all,I have a question about a Listbox. My listbox is fulled with numbers and names, now I would like to write a search function to search in the Listbox but I can't find something that works.For instance:in listbox:1, NAME SURNAME PERSON2, NAME SURNAME PERSON23, NAME SURNAME PERSON3...I made...

CEdit return problem

591 byte By Vincentjames501 at 2007-11-20 11:24:35
For some reason I can't get a CString to consistently be set into an edit box with a "\n" in the code and having it not show weird blocks. (I assume the blocks are the \n?)anyways, as an example code:CString tsData = "a \n b \n c \n";SetDlgItemText(IDC_TIMESLIPDATA, tsData);pmyEdit.SetSel(0,-1...

I need help with one function in my code

272 byte By nicauf at 2007-11-20 11:24:36
I have been stuck on this one problem with my program for hours, literally. I was hoping somebody could help me. When i get my output for the DisplayPay function, its like -9260000000000000000, and I don't know why. I'll post my code so its easier to understand,

Case insensitive help

130 byte By spoot302 at 2007-11-20 11:24:40
how can i make a const sting case insensitive?<br/>also if i can get my program to validate a non-numeric value (i.e 4=four)

Class template member functions

2708 byte By josiah.haswell at 2007-11-20 11:24:42
Hi everyone,I'm coming to C++ from Java, and I'm having some trouble with class template member functions.I apologize if this question has been asked, I wasn't able to find the solution.I'm creating a generic linked list. I've declared the class in a header file, and I'...

Some C++ questions

296 byte By KCosta at 2007-11-20 11:24:45
What would be the best word to answer these difinitions?<br/>1. an encapsulation of data and the <br/> functions that operate on that data<br/>2. prevents a member function from <br/> modifying the state of an object<br/>3. function that alters the state of an object

structure question

2042 byte By ryu at 2007-11-20 11:24:49
Hi GURUs,Look at this code:typedef struct{ unsigned char test1; unsigned char test2; unsigned char test3; short testCode;}TestStruct;//then do this:int iSize = sizeof(TestStruct); //iSize = 6 (huh?? 6?? Isn't 1+1+1+2 = 5?)Then, I tried this:typedef struct{ unsigned char test1;...

How to clone a dialog

384 byte By s196675m at 2007-11-20 11:24:50
I have a dialog template with some control on it.When I will press a button on this dialog, I want to clone this parent dialog and modied some of its control and display this clone dialog as a modal or modeless. At that point I have two dialog one is the original and another is the clone version wit...

how to add more text to the existing file?

106 byte By mase at 2007-11-20 11:24:53
can anyone help me on how to add more text into the existing file, but not writing over the existing file.

string::copy

367 byte By hmaturana at 2007-11-20 11:24:55
This line does not compile. string str = "Hello"; string str1; str.copy(str1.c_str(), 2, 3); and this code produce compile but produce a exeption string str = "Hello"; string str1; str.copy((char*)str1.c_str(), 2, 3); what will be the right way to do the copy from a string to a string.Thank you...

Whats the difference between the captions close button and the file-close item?

207 byte By tjuzhangrui at 2007-11-20 11:24:57
If you want to close a SDI application, there are to ways. By clicking on the close button or selecting Close from the program's system menu.What's the difference between these two ways?<br/>Thank!

Trees

852 byte By sue_myst03@yahoo.com at 2007-11-20 11:24:58
I'm new here.. Am sUzzie.I've got a question. Am quiet confuse with this one..this is a problem on how to deal with a simple kind of "expression tree", where there are two kinds of nodes: (1) leaf nodes w/c contains a real number as an entry.(2) non-leaf nodes w/c contain either the charac...

About Windows Media Encoder SDK

698 byte By hiren241183 at 2007-11-20 11:25:01
Hi all,i am Encoding media files using WMSDK.As given in SDK Help i am using IWMEncoder interface for encoding. as part of that example hr = pEncoder->Start();printf("When encoding stops, press a key to close the console window.");// Stop the encoding process.if ( SUCCEEDED( hr ) ){// Wait for a...

Type cast RWCString to const char * array[] - Help required

846 byte By balaji_er at 2007-11-20 11:25:03
Hi all, I am facing problem in converting a RWCString into a const char pointer to an array. Please find the details as below and help me. I need to compare two currency lists that can be created using fn1() and fn2(). The comparison has to be done in IsCurrencyListSame (). The signature of IsCurren...

Min/Max/Close buttons (operations) of child window

661 byte By VisitorS at 2007-11-20 11:25:07
I have to different applications. One is managed one and antother is unmanaged. I have to make unmanaged app a child of managed. I used SetParent function for it. However there is strange behavior of min/max/close buttons. When min/max/close buttons of the child application are clicked these operati...

Execute external bath file within a add-in

569 byte By kakalake at 2007-11-20 11:25:08
Hallo!In my add-in (Vc++ 2003) I try to execute a external batch file with the _execlp command but this call never returns. I use the following command to execute the batch file:intptr_t ret = _execlp( "cmd.exe", "cmd.exe", "/C", "\""+batFile+"\"", NULL);This invokes the batch file correctly but it...

[HELP] Passing Params from Parent to Child (MFC)

1292 byte By AmiGame at 2007-11-20 11:25:16
Hi,I surfed this forum for quite some times but never registered... This is now done !I'm fairly new to MFC Development...I building an MFC Application (using VC 2005) with a CEdit Control and a button Lookup.I have a second Dialog called "UserLookup" and created the Class CUserLookup (derived...

HELP: split up source file into segments automatically....

461 byte By andrewwan1980 at 2007-11-20 11:25:17
This is not really language specific but more of a source code parsing.I have a large ASP source file that I like to split up, resulting in separate ASP files, each containing one function and the filename named after that function.Does anyone know of a tool/script which does this?PS: I am too lazy...

How can i assign value to java script variable

241 byte By reddysmar at 2007-11-20 11:25:19
Hi...<br/>Am using CDHtmlDialog dialogs... I am also using javascript... <br/>So now If a variable i.e var myVarValue = 1,<br/>I want to assign this value to the variable which is javascript... from VC++ class<br/>Can Any Body Help Please...

GUI Enhancement

156 byte By resumurof at 2007-11-20 11:25:20
Hi,<br/> Is their any free library available to improve the GUI part of MFC application.kindly suggest if anyone of u know..<br/>Regards<br/>XXXXXX

Get filename from context menu

150 byte By Nixonjan at 2007-11-20 11:25:26
Please help me to find how can I get filename from windows explorer context menu and pass it to my own dialog based application?<br/>Thanks in advance

WS_POPUP not working on Vista

791 byte By alav at 2007-11-20 11:25:29
Hi,I am having a problem in applying the WS_POPUP style to my window on Windows Vista. My code works perfectly on Windows XP, the created window is borderless. A screenshot: http://alaf.sierp.net/xp.jpgWhen I run the application on Windows Vista, however, a border (which I obviously don't want)...

Overload Operator

39 byte By KCosta at 2007-11-20 11:25:36
How can you create a Overload Operator?

Pointer to executables own OEP

326 byte By betonboor at 2007-11-20 11:25:37
Hi,I was wondering if it's possible in c++ to have a pointer point to the executable's own OEP.When the executable is activated it is loaded in memory, so I thought it would be possible to create a pointer to the own executable's OEP and change raw data on runtime.Thanks,betonboor...

Help a C++ beginer.

304 byte By goldbomb444 at 2007-11-20 11:25:38
Hi all,I have just started learning c++. I know the basics, and I mean BASICS. I know how to use cout, cin, variables, basic arithmitic, and not too much else. My question is, how do you guys get so good at programming? I look at longer programs and it just blows my mind. I need some encouragement....

Char* Concatenation/Conversion ?

669 byte By monkey2420 at 2007-11-20 11:25:41
I have the following piece of code. ------------char* string2="hello";char* string1=" ";int w=0; while (string2[w]!='\0'){sprintf(string2,"%d",(char) int(string2[w]));w++;}float fl_val = (float) (int) string2; ------------What I need to do is convert each letter in string2 to an ASCII re...

CPageSetupDialog Change paper to landscape

871 byte By sergeroussel at 2007-11-20 11:25:43
Hi, I am deriving a class from CPageSetupDialog and I change m_psd.lpPageSetupTemplateName to point to my dialog resource. That dialog is the same as the CPageSetupDialog (I have copy the resource from the Printdlg.dlg file that comes with VS 2003).Basically, I intercept the text entered in the edi...

printing a sequence of numbers

959 byte By kritikal at 2007-11-20 11:25:48
hey guys,I'm trying to print out a sequence of numbers that has to look like 1 5 15 34...each numbers are obtained by like so1 2+3 = 5 4+5+6 = 157+8+9+10 = 34and so on. But I just can't seem to get it to work... I know I probably have to use a while and a for loop but I'm not sure...

CTabCtrl initiating Dialog problem

3828 byte By tajepe at 2007-11-20 11:25:55
This is what I used to derive from the CTabCtrl class:IMPLEMENT_DYNCREATE(CDialogTabs, CDialog)CDialogTabs::CDialogTabs(CWnd* pParent /*=NULL*/) : CDialog(CDialogTabs::IDD){ m_DialogID[0] = IDD_EDIT_TISSUE; m_DialogID[1] = IDD_EDITCVECTOR; m_DialogID[2] = IDD_EDITCELLTYPE;}void CDialogTabs::DoDataEx...

matrix addition using arrays. PLEASE HELP!

217 byte By jeditransistor at 2007-11-20 11:25:56
hi all. I am trying to write a program that will add matrices using arrays, if possible. Any help or source code would be of great help. thanks in advance.<br/>ps I am using visual studio 2005 on windows XP

Help with a TreeView

1553 byte By gbrooks3 at 2007-11-20 11:25:58
Hi, here is the code I am using to add items to a tree control. HTREEITEM AddItemToTree(LPSTR lpszItem, int nLevel){ TVITEM tvi; TVINSERTSTRUCT tvins; static HTREEITEM hPrev = (HTREEITEM) TVI_FIRST; static HTREEITEM hPrevRootItem = NULL; static HTREEITEM hPrevLev2Item = NULL; HTREEITEM hti; HWND hwn...

Variable issues

978 byte By MisterFish at 2007-11-20 11:26:04
My C++ class has been working on a 'grading' program. My program takes the numerical value (0-100) and then turns it into a letter grade (A-F). While I'm officially done with the project, there is still one issue that I personally want a solution to.When testing input to ensure the pr...

Question

145 byte By andy38 at 2007-11-20 11:26:06
Hi,bear with me, my question is it possible to translate an applicatiion witten in C++ into VB net (2003 or 2005) if so what do I need, Thank you

How to make Output Blink?

270 byte By KingOfSJ1 at 2007-11-20 11:26:11
k im using visual C++, so basically all i have to do is prompt someone to input something...could be whatever...and it has to output what they input....simple......but it has to blink on the screen...is there a function or how would i go about that ?<br/>thanks....

positioning a rebar

159 byte By richiebabes at 2007-11-20 11:26:12
Is there any way to position a rebar where you want it or does it just get plonked where it does automatically and there's nought you can do to change it?

Thread creates thread

98 byte By mce at 2007-11-20 11:26:20
Is it possible to create a worker thread within a worker thread? If so, any issues of doing this ?

Calling VC++ Dialog from VB.

138 byte By sudeephooli at 2007-11-20 11:26:21
Hi all,<br/>Can anybody explain me how to call VC++ dialog/view/form from VB application.<br/>Thanks in advance.<br/>Sudeep

Why the app will run slower when it occupied more memory?

542 byte By tjuzhangrui at 2007-11-20 11:26:23
When the app's memory usage is about 30M bytes, it runs fast.But if it allocates a continuous big block of memory such as 100M bytes, while the cpu's load is constant and the physical memroy is enough. It will run much slower.for example//MyDoc.hclass MyDoc : public CDocument{ //just...

Button With Bitmap

240 byte By amit_srms21 at 2007-11-20 11:26:28
hi,<br/>pl z, tell me how can i load a bitmap to a button , i have made a variable of Button of type CButton and want to use function LoadBitmapfromFile(), But it is not showing the option for function?can any one tell me where i am wrong??

List iteration Problem

803 byte By ashishbhatt12 at 2007-11-20 11:26:30
Hi All,I am using list class in my project(MFC Application). I have made list like ....typedef std::list <RECT> rectlist; // Here list is of type RECTin one header file. And during my project execution I am storing rectangles in the list.And now,When I use list iterator in another class like...

How to register our batch file

915 byte By anandtugaon at 2007-11-20 11:26:31
HI,i created a batch file , so my queation isI want to build a exe such that it should register the batch file automatically1)In Scripts of group policy (startup/Shutdown folder)2)Scheduled Tasks(We have to set time 9.30 daily)so my batch file should run durning startup and shutdown time also daily...

Microsoft VC++ Runtime library error

716 byte By vikastiwari at 2007-11-20 11:26:32
Hi,I have created a MFC application. When I execute this exe on Windows 2000 prof. in restricted mode it gives VC++ Runtime library error.Scenario:1. Log in, in restricted mode.2. Run an executable (say 1.exe) by double clicking it.3. From 1.exe spawn another process (say 2.exe) through ShellExecute...

temp directory for Word in service mode

822 byte By roger21 at 2007-11-20 11:26:36
hi,My application creates Word instances and can work in service mode and in user mode. I am trying to set up specific TEMP and TMP environment variables for this Word instances. I used _putenv and it works just fine in user mode but in service mode Word instances keep using the global WINDOWS/TEMP...

Displaying WChar string in non-Unicode Project.

999 byte By nilesh.gawade at 2007-11-20 11:26:39
Hi, I am trying to display a wide char string to an Edit box. My prject setting is MBCS. Is it possible to display Wchar string in non-unicode project?If so Please let me know.For setting unicode font : CDC *pDC = GetDC(); // create UNICODE font LOGFONT lf; memset(&lf, 0, sizeof(lf)); lf.l...

Drag & Drop e-Mail to application

295 byte By mbaerten at 2007-11-20 11:26:41
Hi everybody,<br/>it's possible to drag an e-Mail from out Outlook and Thunderbird<br/>and to drop into a self-made application.<br/>How is it possible to resolve the data of the e-mail into the <br/>Drop-Handler?<br/>Each information or hind helps :-)<br/>Big thanks :)

Modeless dialog

372 byte By bagavathikumar at 2007-11-20 11:26:43
hai friends, I developed one application, in that i use one modeless dialog. It works properly but it overwrites the basic dialog property, ie.it allow to lost the focus from dialog to previous view. how can i prevent and how can set dialog properties to my modeless dialog....

Passing default value for CMap parameter

280 byte By lukevprem at 2007-11-20 11:26:47
Hi,<br/>I have a method for which I have to pass a DWord to String map as a default parameter. If I assign a default value of null or 0, it throws me error during compilation. Does anyone know what is the default value that we can pass for the map?<br/>Thanks,<br/>Luke.

converting a string to BYTE

446 byte By aguess at 2007-11-20 11:26:49
i found this code in of the post in forum,it was for conveting from sctring to BYTE type.[CODE]CString str = mystring;LPBYTE pByte = new BYTE[str.GetLength() + 1];memcpy(pByte, (VOID*)LPCTSTR(str), str.GetLength());CODE]i tryed to use it to to convert a character string to BYTE( ex:012,203) but the...