Good Habit to inculcate.:-D
VikramDelhi i
Posts
-
Empty String Overkill -
Sending text to chat via Editwatch out this http://www.codeproject.com/dialog/keystroke.asp[^]
-
How to execute an exeHi Thanks a lot for help. I think there is no way to execute exe file from memory. So i am going to use ShellExecute(). well if i find out any way i'll ley you know. thanks
-
Change of Background Color of dialog boxthanks for this technique.:)
-
Networkingwell if i am to code a project on net. then i'll go for SMTP server( it can be a smtp server for newsletter kind od app)or FTP server or something similar to it.
-
How to execute an exeWell that sounds great. should i load exe that is at the end of main exe file and create a process with the address of second exe. well i have joined (appended) 2 exe files. now i want to load 2nd exe (which is at end of 1st exe) to the memory.
-
How to execute an exeI want to execute exe directly from memory. I am writing a binder that will bind my project files and execute them to the memoty.I am doing this to make single exe out of several. Any idea or ref.:confused:
-
open a default fil by using the CFileDialog class:zzz: yep if he knows filename & location then why he is using
CFileDialog
. well i guess he wants to show his skills here.;) -
How to execute an exe:rose:Hi I want to know how i can extract an exe into memory and then execute it directly from memory. Any idea or ref:confused:. Pl. help me. thanks
-
Easy way to search this board????The CodeProject SearchBar[^] wow nice app. thanks a lot for informing me.:rose:
-
Easy way to search this board????:rose:hi guys Do you know any soft. that can search this board for previous messages. Searching this board right from desktop without IE will be a nice idea.;)
-
How to get size of file ???????hi thanks a lot guys.:) you all are really nice guys.:-D
-
How to get size of file ???????Hi Do anyone know how to get the size of any file in win32 system using APIs.:confused: thanks
-
Books for windows graphics programming???Hi i want to learn windows graphics programming with mfc or pure api. plz. suggest some good and easy to understand books.
-
Help??calculate a distance between 2 computers?Thanks for replay I actually want to calculate the best path for sending information from one computer to another. What I am trying is : I am trying to build a network where several servers will be distributed to in a wide area. The purpose of these servers will be to deliver fax. I require calculating the best path for this purpose. Actually this is a final year project. vikram
-
Help??calculate a distance between 2 computers?Hi Is there a way to calculate the distance between 2 computers? Suppose I have 5 computers located in diff. parts of the world. Now I want to send information from 1st computer (say computer A) to the farthest (say computer E). I can easily evaluate the shortest path between 2 computers if I know how to calculate the distance between 2 computers. Now my question is ->>> Is there a way to calculate a distance between 2 computers? Some idea, hint or code! Please help. Thanks
-
Help!! Drawing a text using DrawText on the from and Changing CRect of form according the Text.Hi
I am new to GUI programming. I am learning MFC and able to create one application.
But I have one problem that i am not able to solve yet.Problem:
I want to display a message that tells the upcoming Birthdays. I don't know how long birthday list can be, so I can't use Static control. I tried to use DrawText() Function to draw text. I know DrawText() extends the base of the rectangle to bound the last line of text. I am able to draw the text message but have following problems.-
I don't know how to get the correct height of the text message rect.
-
How to change the dimensions of the Dialog box according the text message.
-
Sometimes Text is not displayed, only blank area is displayed. Don't know why?
I want to do something like this: Link to IMAGE
I Created DrawText() Function which paint the text. I called DrawText() in OnPaint().
void CRUNDlg::DrawText()
{CPaintDC dc(this);
CRect rect,rcDialog,temprec;
CFont fFont;
CFont *fOldFont;
int h; // i tried to use h to calculate height of text but in vain// rect: for DrawText
// rcDialog: for Dialog dimensions
// temprec: for height calculation of text drawn
//GetWindowRect(&rcDialog);
GetClientRect(&rect);dc.SetTextColor(RGB(0,0,196));
dc.SetBkMode(TRANSPARENT);temprec=rcDialog;
temprec.bottom=0;
temprec.bottom =rect.top=10;fFont.CreateFont(20,0,0,0,FW_NORMAL|FW_BLACK,0,1,0,DEFAULT_CHARSET,OUT_CHARACTER_PRECIS,CLIP_CHARACTER_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH|FF_DONTCARE,"Arial");
fOldFont =dc.SelectObject(&fFont);h=dc.DrawText("Birthday Alert",rect,DT_NOCLIP|DT_CENTER);
temprec.bottom+=rect.top;fFont.Detach();
fFont.CreateFont(15,0,0,0,FW_NORMAL|FW_BLACK,0,0,0,DEFAULT_CHARSET,OUT_CHARACTER_PRECIS,CLIP_CHARACTER_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH|FF_DONTCARE,"Arial");
fOldFont -
-
HELP!!! String manipulation ""Calculating Atomic no of elements"" ????hi I want to know how to extract element symbols using recursion from string like "4H2SO4". Also tell me how to learn recursion and string manipulation "some good books".
-
Help!!! How to write single Event Handler for 100 buttonsHi, I am working on a small periodic table for my college friends. The idea of the application is that there will be a button for each element, placed in the same style as that of Modern periodic table. Now I have 2 options to implement this. -> I must place more than 100 buttons on the Dialog and write event handler for each button. -> or place buttons and write single event handler for all button. What should I choose? Or suggest anything else I can implement. Also, if I implement 2nd option, how I can detect which button is clicked
-
Help!!! How to set position of a dialoghi DavidCrow thanks a lot for help! :)