|
Take a look at GetWindowText. It should do it !
|
|
|
|
|
the function GetWindowText Can't use ,CComboBox modify it
|
|
|
|
|
I need to join to RTF files ( generated by WORD 2000 ) into one.
But when I do that ( clearing "}" on the end if first and "{"
on the start on second.
That works but I lost EastEroupean characters from second file.
Any solution for my problem ?
|
|
|
|
|
Trying using paste instead of doing it thru strings. The problem is that both RTF's have headers. Doing it with strings would mean you'd have to parse the headers and merge the data between the two. Another way would be to create an invisible RTF control and stream both RTF strings into it. The RTF control is pretty smart about such things.
--
Joel Lucsy
|
|
|
|
|
Thanks. I try to use RTF control.
|
|
|
|
|
Hi
I have a simple application and, I have the data in some arrays.
If I want to write these data to an Excel file what should I do.
I can easily write them to a text file....but is it possible to write it to an Excel file without using MFC?
|
|
|
|
|
you can make the output go into a *.csv file, a comma seperated value file, which can easily be imported into excell.
*.*
cin >> knowledge;
|
|
|
|
|
ok thanks I tried to make a .CSV file and it opens in Excel format the only problem is that the file does not look good. All of the output in in One Cell.
if I want to have
something in A1 and the next thing in B1 what should I do.
right not it does not undrestand that Tab means going to the next column!
|
|
|
|
|
One more thing I forgot to ask.
How can I create a Sheet within the .cvs file from inside my c++ code?
|
|
|
|
|
dont worry about my first question. I used *.xls file directly and it works but i am still wondering about generating that extra sheet in the file.
|
|
|
|
|
maryami wrote:
...is it possible to write it to an Excel file without using MFC?
Yes, just use Excel's COM interface.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Can you give me a link that can help me to get to know excel's COM interface? I have not work with that before!.is it a class? library ?
|
|
|
|
|
maryami wrote:
Can you give me a link that can help me to get to know excel's COM interface?
Try this one.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Ok, this is my first time posting so bear with me. I have to write a battleship program; you play against the computer AI. I have everything close to working but when I put in the code for the computer to guess a random spot and color that spot if it was a hit, it says debug assertion failed, wingdi.cpp, line 1120. It seems to have to do with my RePaint function coloring the square. Is there an easy way to fix this?
|
|
|
|
|
If you can run it in a debugger, where you can get a stack trace when the assertion fires, you'll be able to see what bit of your code it doesn't like. Post the relevant snippet here.
Shog9
---
You'd better turn back, before the frost sets in.
These desert nights are for weathered men,
The ones who've already given in...
|
|
|
|
|
When I do that its the stdafx header here(->):
BOOL CGdiObject::Attach(HGDIOBJ hObject)
{
(->) ASSERT(m_hObject == NULL); // only attach once, detach on destroy
if (hObject == NULL)
return FALSE;
CHandleMap* pMap = afxMapHGDIOBJ(TRUE); // create map if not exist
ASSERT(pMap != NULL);
pMap->SetPermanent(m_hObject = hObject, this);
return TRUE;
}
Any ideas?
|
|
|
|
|
Anyone know how to fix it?
|
|
|
|
|
In debug the call stack window points to this:
CGdiObject::Attach(void * 0xb5100c1d) line 1120 + 28 bytes
|
|
|
|
|
It is when I assign a brush color I think.
|
|
|
|
|
The assertion says that there is already an object handle associated with you CGdiObject class. You probably attached a GDI object (a brush?) to the variable previously and forgot to detach it before you reused your object to the new brush.
If this is not the case please post the code where you use the GDI object and class.
Cheers
Steen.
"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
|
I am writing a simple client/server program to be used for a simple game program. It works fine within my computer(both server and client running in the same computer), but when I try to connect to the server program (running in my computer) form other computer ( from internet cafe') it doesn't connect.... I think I am missing something. could you please give me some suggestions or information useful to make my clinet program connect with the server program running in different computer. thanks!!!!
santosh Neupane
|
|
|
|
|
Do you have a fixed IP-address for your home computer?
Do you have a firewall on it?
"Time to give a Newtonian demonstration,
of a bullet, its mass and its acceleration."
-Stephen Hawking the gangsta rapper
|
|
|
|
|
Yes. I have a fixed IP Address.
I am not sure about a firewall.
thank you.
|
|
|
|
|
Has anyone know how to fix the dsw or dsp in vc when the class tab (info) is lost?
To be very simplistic about it The class tab works, their is no info or + - signs or
eval globals(theApp)
The project still works fine, I went back 1 hour and still no luck.
Any idea's ?
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|