|
How to locate an adress to write in a file?
I want to write some data to a file, and I want to realize the function:
every time write data to the end of the file without changing the previous data of the file.
How to do that?
Thank you.
|
|
|
|
|
Hi,
do you mean "Append"?
regards
~Hari~
|
|
|
|
|
We developed a tool to convert TTF character to BMP ,the tool run good on win2000,but error on win98.In the tool we can create
a bitmap for each character,the bitmap is good on win2000,but is disorder on win98.
I read book find that the GDI objects are shared on win98.If have a bitmap object,then next
the system will not create a new bitmap.
Can you give me some advice?;)
|
|
|
|
|
I don't know what I did by accident but my compiler has been behaving quite funny in the past hour (MS VC++ 6.0). Every time I press the build button it compiles the same three files (even if I don't make any changes). Then when I press the execute button it says that the .obj files of the matching c++ files are "out of date or do not exist" (they are in the directory) and it asks me to build again. All of this happens no matter if I make code changes or not. Does anyone recognize some settings I might have changed by accident?
|
|
|
|
|
The files in question have been forward dated (i.e. Jan 1st, 2010). Thus the compiler can never create an object which has been built since the last modification of the file.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
The files all have the same date May 11, 2003. Any other suggestions?
|
|
|
|
|
Close the IDE and delete the *.NCB files.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Great, deleting the one NCB file I had did the trick. Just so I know, what exactly is an NCB file?
|
|
|
|
|
I need some advice on how to proceed with the above function. A user of my program is trying to access a URL from the program using InternetOpenUrl but keeps getting error 12002 (Timed out by server). What is the best workaround for this, should I call InternetOpenUrl again? Is there a better solution?
|
|
|
|
|
Maybe ShellExecute?
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
No the HTTP session is running in the background and not through explorer.
|
|
|
|
|
hello
In my mainframe window i have an accelerator key for for the 'del' key.
now the problem is, if i input a text into an editcontrol which is a child of the mainframe window and press 'del' to delete a char, the accelerator associated with the 'del' key is called instead of the usal processing of the edit control (deleting the char behind the caret).
how can i avoid this ? what message do i have to handle that the accelerator is ignored while working in an edit control or combobox or whatever ?
greetings
roman
I'm not a slave trader - just a labor contractor.
-- modified 26-Apr-21 21:01pm.
|
|
|
|
|
Use WM_KEYDOWN handler instead of an accelerator (it just seems inappropriate in this case).
Regards,
BB
|
|
|
|
|
Let's say I have two buttons:
ID_BUTTON_START
ID_BUTTON_END
- is there a way (such as "if(myDlg.DoModal() == IDOK)..." to indicate that first or second button was pressed for a modeless dialog?
|
|
|
|
|
You could always use a bool varible within the class to keep track of this.
-Nick Parker
|
|
|
|
|
If I need to store state data from a modeless dialog box I usually pass a pointer to my CDocument and store it there. Otherwise when a button is pressed I send a command message to my main view window. This way the dialog can delete itself in the PostNcDestroy function without worrying about some function trying to look at data stored in the dialog class after it has been destroyed.
John
|
|
|
|
|
hello
i make an appliaction that draw in the window of the application some objects with OpenGL.and i put the call of the function who draw in ondraw.
my problem is that when i minimize and maximize the window other objects appear in the window(other objects are draw).
i want just draw once and and don't repeat the drawing.
<br />
void creatfoufou::creatfou(int amount)<br />
{<br />
foufou *newfoufouPtr;<br />
int speed,steer;<br />
<br />
for(int index=0;index<amount;index++)<br />
{<br />
<br />
foufou *newfoufouPtr = new foufou();<br />
fou_caracter.push_back( newfoufouPtr );<br />
<br />
newfoufouPtr->initPosX =( ( 1 + rand( ) % 100 ) - 50 );<br />
newfoufouPtr->initPosY =( ( 1 + rand( ) % 100 ) - 50 );<br />
newfoufouPtr->initPosZ =( ( 1 + rand( ) % 100) - 50);<br />
<br />
<br />
<br />
<br />
<br />
}<br />
}<br />
<br />
<br />
void creatfoufou::iteratorVector()<br />
{<br />
<br />
creatfou(5);<br />
int vectorIndex;<br />
vectorIndex = fou_caracter.size();<br />
<br />
for (int i=0;i<vectorIndex ;i++)<br />
{<br />
<br />
ptrfoufou->RePaint(<br />
fou_caracter[i]->initPosX,<br />
fou_caracter[i]->initPosY,<br />
fou_caracter[i]->initPosZ);<br />
}<br />
<br />
}<br />
<br />
i call iteratorVector in ONDRAW
|
|
|
|
|
Iam doing MFC based project .MY project has a dialog box which contains the GRID control activeX control .
Now when i try to access that dialog ( which contains the grid) in the Visual studio .NET ,i get this message .
"The activeX control GRid control requires design time liscense".
I prepared the installation using WISE and installed in the same system in which it was developed .
But the same dialog box works fine in the EXE .
|
|
|
|
|
I need to launch a Vis Studio 6 C++ application that is initially minimised.
This is a Dialog-Based app.
How to do this?
Most of the time this app will run and exit in a few seconds, but I want user to be able to maximise it if runs longer and it is desired to watch app progress.
Much thanks in advance.
Robert
|
|
|
|
|
Your easiest option would be to progrmatically minimize it in OnInitDialog otherwise you will have to manually (text) edit your .rc file. I believe that is where it is stored. Unfortunately I have not used VC6 in quite awhile and I am currently working console based apps. Alternatively you could create an SDI app with CFormView and remove the tool bars etc.
Matt
|
|
|
|
|
Thanks Matt!
Robert
|
|
|
|
|
The easiest thing you can do is putting the following call at the end of your OnInitDialog():
BOOL CSampleDlg::OnInitDialog()
{
...
// Open the dialog minimized
ShowWindow( SW_MINIMIZE );
return TRUE;
}
That should do it... Hope it will help you!
Mykel
|
|
|
|
|
Thanks Mykel. I have it up and running!
Robert
|
|
|
|
|
hi, all,
i have to move to unix, i really hate vi or pico.
is there a very good c++ tool (similar to VC++ in windows) in unix? what is that? which one is best?
i believe someone here is good in unix also.
thx
includeh10
|
|
|
|
|
xemacs (and it's free) for editing. ddd for visual debugging (of core dumps).
|
|
|
|