|
I have a working C++ project which I wish to have encapsulated into a COM dll and not being a C++ developer myself I was wondering how much effort would be involved in something like that (in general)
Basically I just want to provide interfaces into the work being done so .Open(FileName) instead of clicking File-Open in the app
--Tony Archer
"I can build it good, fast and cheap. Pick any two."
|
|
|
|
|
First of all create an ATL/COM project in vc.
and in workspace viewer add an interface to it.
then add a method to the interface.
then write the code behind the method( you cane copy and paste the code from your C++ code!)
It needs a bit hard work;)
Kamyar Souri
Booria CAD/CAM Systems
www.booria.com
|
|
|
|
|
When i tried to modify one of the previous messages i posted (bottom of my own profile), shows -
"This message was not posted using your member account, therefore you cannot delete or modify it"..!!!!! then who..???
is it a B.U.G ????????
I want to change Myself..Can u help me?
|
|
|
|
|
help the man , i neeed his post ..;P pls pls pls
|
|
|
|
|
Does anyone know where I might find a class to parse/read a RSS stream ? Would a simple Xml reader class suffice ? (I know nothing about RSS standards)
I basically want to extract information from an RSS feed.
Thanks.
R.Bischoff .NET, Kommst du mit?
Great Freeware -> Abilon - Rss Reader | Zip Genius | SmartFTP
|
|
|
|
|
You can use any XML parser class, just take a look at the RSS specifications (0.91, 0.91, 2, ..) to make sure you parse the RSS feed correctly.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
|
dows any one know how to open and read the data from an excel file using VC++ / borland c builder?
|
|
|
|
|
i think it is the time to write an article on Excel automation, i wrote that 60%; 40 more.. wait buddy
I want to change Myself..Can u help me?
|
|
|
|
|
MSDN Oct 2001->[Topic}Video Drivers and the I2C Bus->
To support Video Drivers and the I2C Bus, see the current DirectX DDK.
I could not found that topic. Can any one say me exact topic of i2c in DirectX.
|
|
|
|
|
MFC Application gets hang while printing to Acrobat PDFWriter...
Jignesh H Suthar
|
|
|
|
|
Dears:
I want to read some data from file and store it in array. I face some problems, need help from you all^^
1.I use fscanf(...) to read. but i failed to detect the end of line.
2.6.2478916055375
When i read this number using
Long lBuf;
fscanf(pfile, "%ld", &lBuf);
It fails. The result is lBuf=6.
Is there another way to read it?
Thanks^^
|
|
|
|
|
fscanf(pfile, "%l\n", &lBuf); perhaps...
TOXCCT >>> GEII power
|
|
|
|
|
From the following code, why after the program terminates,
m_listSampleName[i] for i=0 to m_nSampleNumber share the same datas?
I have tried to debug, but I don't find out where is the error?
Please help. Thanks a lot before.
m_nSampleNumber = 0;
while(!in.eof())
{
in>>strBuf;
if(strcmp(strBuf,"END"))
{
m_listSampleName[m_nSampleNumber] = strBuf;
m_nSampleNumber++;
}
else
break;
}
|
|
|
|
|
FYI,
char* m_listSampleName[MAX_GENE_NUMBER];
Is the error on the member declaration?
|
|
|
|
|
"%ld" is asking for a long interger value; therefore, it returns an interger value (what you asked for).
double d;
fscanf(pfile,"%f",&d);
result should be d=6.2478916055375.
INTP
|
|
|
|
|
Dear all,
I am new for this site as well as for VC++. I recently got a job
I am working on data compression/decompression. Be very much clear Not file compression/decompression.I am to compress the data cluster by cluster of any harddisk. how can i compress a cluster into bytes or sector? I have no clue about it
All suggestion are welcomeed .
Thanks
snav
|
|
|
|
|
this is a crap idea! if you compress a cluster then the cluster is not full anymore. if you move other data in there then, then you need much time to decompress the whole thing again... in my opinion a silly idea, not worth the work on it. by the way, coding this is quite complicated, too, because it has to run as a storage filter driver.
Don't try it, just do it!
|
|
|
|
|
Hi
Alexender
Thanks for the suggestion and replay.
I agree with u but what i just want to do. I read a cluster using ReadFile() function and keep it in buffer . Now my question is how to compress this data which is in buffer so that if i write it any other place as a backup. It takes less memory space in HDD or any other storing device.
I am to compress files but cluster by cluster because i want to store the backup of this file in bytes(row) form not in file form [compressed file takes clusters again wastage of space ] .
This might be crap idea. But u would be able to help me , i'll be thankfull.
Now Ball is in your goal
|
|
|
|
|
I've got HUGE problems with floating point precision lost
in the following code:
- s*(a.y-c.y) - h*(b.y-c.y)
where
s = h = 0.333....
c.y = 0.675
a.y = b.y = 0
The result is about 5.e-17 (as I understand, NAN).
How to overcome the problem, forex
find out that precision lost occured.
Thank you for help, A. M.
gp123456
|
|
|
|
|
try a.y = b.y = 0.0;
TOXCCT >>> GEII power
|
|
|
|
|
toxcct wrote:
try a.y = b.y = 0.0;
Of cource, a.y & b.y are doubles too!
So read a.y = 0.0, b.y = 0.0
Suppose you haven't understood my question:
precision lost is a result of existing in my
program double values with infinite part after
floating point, e.g. that
s = 0.3333... (infinite 3's after floating point)
&
h = 0.3333... (infinite 3's after floating point).
|
|
|
|
|
could you give a piece of code (the equation calculation for example) ?
TOXCCT >>> GEII power
|
|
|
|
|
Loss of precision is an inherent problem with floating-point numbers (float and double ). You should never test for equality between two float s/double s because of this, but instead test that the difference is less than some threshhold.
To get around this, you'll need to use some alternate means of manipulating floating-point numbers.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
"Just because the box has 2 gigabytes of memory doesn't mean you get to use it all!"
-- Rico Mariani, CLR perf guy
|
|
|
|