|
Hello,
I assume that you have the C++ header files for the libraries. You can do / try the following:
<list> Set up a new project for a DLL. Here you write new headers that export the functions from the library. You create a DLL from here.
You write a managed wrapper for the library and create a .NET assembly for that.
Hope this helps
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Thanks for your reply.
Yes I do have the header files.
So am I right in saying that I would need some C/C++ skills for this?
I feared that as I have very limited skills in that area and the header files' code seems very complex for me.
Regards,
Phi?
-- modified at 8:52 Monday 31st October, 2005
|
|
|
|
|
André Trollip wrote: I feared that as I have very limited skills in that area and the header files' code seems very complex for me.
don't worry André, headers are - most of the time - only declarations.
what can obfuscate the understanding (especially with a dll header) can be function pointers. i suggest you so having a look at the msdn on that topic, of search the web for it (but just tell you it's not so hard and everything will be ok ).
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
André Trollip wrote: So am I right in saying that I would need some C/C++ skills for this?
You don't need 'skills' as in n years experience. You do need to know a little bit about the topic. Search google or CP for writing DLL's. There are some articles here about the topic.
Maybe you should try to call the vendor if they can build the library for you. This wouldn't be a crazy request since you paid for the API anyway.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Why Visual Studio 6 C++ begins slowly editing for multy-project solution?
VS6 sp6.
One project being edited as text in studio -
for inserting new string - works very fast,
(on my P4-3000, 1GB)
but if I edit this project in solution that includes 15 projects,
inserting one line to 200 lined file
takes 1-2 seconds,
it is so long!
why so happen?
How to correct it?
thanks
|
|
|
|
|
Is your visual studio linked to some SSC ? Source control ?
If so, you can try removing it, This can speed up loading and editiing speed.
-prakash
Learning Symbian
|
|
|
|
|
No, it is not linkd to versioning systems,
but only to BoundsChecker.
But with swithed off all options.
This program - can do this slow behavior ?
|
|
|
|
|
vgrigor1 wrote: but only to BoundsChecker.
But with swithed off all options.
This program - can do this slow behavior ?
I have not used boundschecker, so no idea.
-prakash
Learning Symbian
|
|
|
|
|
|
Try to remove all the breakpoints in all projects, this is a killer too from some reason.
|
|
|
|
|
You might try the following...
Close your project, then delete the .ncb, .aps, and .clw files. Reopen the project and try again.
The .ncb file in particular can grow quite large as you edit code, (and the .aps grows with resources). Therefore the more you add/edit without deleting these file can slow down VS considerably.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
<kmedcalf@ev1.net>
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
I tried deleting .ncb file,
it did not helped.
|
|
|
|
|
Hi,
is it possible to store the content (text+format) of a CRichEditCtrl to a variable and serialize it later?
I need this because I have an Array (CObArray) with my class derived from CObject. Each item in this array should store a content of a RichEdit....
Thanks for your help...!
|
|
|
|
|
Yes, its possible for serializing the contents of a CRichEditCtrl.
Just get the text and its format in a CString and serialize that CString. While loading get that string and display that one.
If the replies helps you, rate them.
|
|
|
|
|
But how can I put the content of a CString to my CRichEditCtrl?
following the part I put my text from CRichEditCtrl to a CString
<br />
static DWORD CALLBACK MyStreamOutCallback(DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb)<br />
{<br />
<br />
CString *pTempString = (CString*) dwCookie;<br />
<br />
pTempString->AppendFormat("%s",pbBuff);<br />
<br />
*pcb = pTempString->GetLength();<br />
<br />
return 0;<br />
}<br />
void CMyTestDlg::OnBnClickedButton5()<br />
{<br />
EDITSTREAM es;<br />
<br />
es.dwCookie = (DWORD) &m_szRTF;<br />
es.pfnCallback = MyStreamOutCallback; <br />
m_rtfAuswertung.StreamOut(SF_RTF, es);<br />
<br />
}<br />
<br />
|
|
|
|
|
I believe you'll want to use CRichEditCtrl::StreamOut(SF_RTF, ...) for this. Simply getting the text via GetWindowText() won't work as it will lose the formatting.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Can someone help me turn this into c++ code. I thought I had it but I keep getting errors. What am I doing wrong? N is an exponent.
Payment = Rate * (1 + Rate)N
-------------------- * L
((1 + Rate)N – 1)
Here is my code:
double payment=(mrate*(1+mrate)* exp (n)/((1+mrate)* exp(n)-1))*l;
BINARY
-- modified at 3:22 Monday 31st October, 2005
|
|
|
|
|
Binary0110 wrote: I keep getting errors
Do you mean compiling errors, or errors in the formula ?
~RaGE();
|
|
|
|
|
Hi,
What do mean saying that N is exponent? Do you mean e^N or x^n?
Where have declared the rest of variables; mrate, n, l?
double mrate = some_initial_value;
double l = some_initial_value;
double n = some_initial_value;
Anyway, if you mean e^N, the code might look like so:
double payment =<br />
(mrate * (1 + mrate) * exp(n) / ((1 + mrate) * exp(n) - 1)) * l;
If you mean x^N:
double payment =<br />
pow(mrate * (1 + mrate), n) / (pow((1 + mrate), n) - 1) * l;
--
======
Arman
|
|
|
|
|
Binary0110 wrote: ...but I keep getting errors.
Such as?
Binary0110 wrote: double payment=(mrate*(1+mrate)* exp (n)/((1+mrate)* exp(n)-1))*l;
Make sure the numeric constants are floating point values, like:
double payment=(mrate*(1.0+mrate)* exp (n)/((1.0+mrate)* exp(n)-1.0))*l;
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hi,
I want to find out what is the length (or maybe I should say width of a char* object / string in pixels so I could set the width of column (in List Ctrl) to fit the text length.
Is there any (MFC) function or some kind of trick I can use to find out this attribute?
thanks,
yaron.
|
|
|
|
|
Yaron Abershitz wrote: I should say width of a char* object / string in pixels so I could set the width of column (in List Ctrl) to fit the text length.
check out of thsi function GetCharWidth(...)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi,
Take a look at CDC::GetTextMetrics
--
======
Arman
|
|
|
|
|
|
Yaron Abershitz wrote: so I could set the width of column (in List Ctrl) to fit the text length.
How about CListCtrl::SetColumnWidth(..., LVSCW_AUTOSIZE) ?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|