|
core99 wrote: am self eductated student.
OK, so you're working through a book, and it doesn't have the answers in it ? I'd abandon the book for another one.
core99 wrote: the quistion is are you welling to help?
Really, what you're wanting help with is of no value, you can get any text to justify just by callnig the right API. If you're looking for learning exercises, I'd choose them from a book that gives you the answers, if you don't have a teacher to check your work.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Thats great Graus, its a good reply. But shall I say you one thing, Americans dont use better English than British. May be, I am wrong in your openion, but they some times use wrong grammer than Indians too. Dont mind this is just my friendly reply. Thank you.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
indian143 wrote: Americans dont use better English than British
I'm neither, but I agree, the reverse is true. Where did this come from ?
indian143 wrote: but they some times use wrong grammer than Indians too
Perhaps rarely. It's more often that Indian grammar and spelling is the worst. But, it's to be expected, as English is not their (your) first language.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Do you know a normal Indian can speak atleast 3- languages. My few Saudi(I was working there) friends got stunned when I said this. India has 30+ scripted languages and 2000+ unscripted languages. Ok. Thank you. Sorry for the inconvenience.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
I guess there's some irony in the fact that (as far as I know) until now, no american has
posted in this thread.
Mark
|
|
|
|
|
I am afraid that I cannot speak or write well enough to reply! However, it is apparent our Indian friends do not realize that there are several dialects of English. The correctness of one dialect over another is only determined by political and economic factors.
Geo.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
whats the point!
guys, is this your way of helping new members?
yall left the main point!
the main point from this post is to help,ok.
please do not post if you not willing to help
that is unmature..
|
|
|
|
|
You need to ask questions that will elicite the answers you seek. If you have a specific question on a very specific issue, we can help. We are not here to read your mind or do your Google searches for you. Sounds like you need paid professional help!
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
this is my work:
#include<iostream>
#include<fstream>
#include<cstring>
using namespace std;
int main()
{
ifstream fin("data.txt",ios::in);
if(!fin)
{
cerr<<"could not open the file\n";
exit(1);
}
int nward=0;
int length[nward];
char word[nward];
while(fin>>word[nword])
nword++;
if(nward==60)
length[nword]=strlen(word[nward]);
while(!eof)
{
int done=0;
int wordcount=0;
int counter=0;
while(!done)
{
counter+=length[nward];
wordcount++;
if(counter==60)
{
counter-=length[nward]-1;
done=1;
}
still i need to work on this code "you can see that";
and its not complete i hope you guys can direct me,comment and help any way you like; 
|
|
|
|
|
Many people come here looking for answers but don't know how to ask a question to elicit the desired response. If you are one of those people, please read: http://catb.org/~esr/faqs/smart-questions.html[^]
This does not apply 100% to this forum but there are some good points that can be applied here.
-- modified at 21:45 Friday 5th January, 2007
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Good link!
One thing I can't figure out... i get the "I know I'm just a pathetic newbie loser, but..." but
are "hackers" good or bad?
Mark
|
|
|
|
|
Since I am an old fart, I can remember when a hacker was a "good" guy. The definition of hacker has shifted a lot over the years unfortunately. The link below is about how the meaning of hacker has changed: http://en.wikipedia.org/wiki/Hacker_definition_controversy[^]
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Hi
I want to use the DDEML library for dynamic data exchange with some arbitrary server, so I've written a small class that does this. The problem is that this class is written as unmanaged C++ but I want to take advantage of the nice .net CLI form environment so what are my options?
Can I make a library in unmanaged VC++ and use it in my CLI project ? Or what is the best/easiest solution? What do I need to think of?
Btw. I've already tried to make just that class unmanaged (no /clr) in the same project but that didn't work - should it (I get a lot of unresolved external symbols)?
Thanks for any input, feel free to be specific because this is my first CLI project
/Calle
-- modified at 10:30 Friday 5th January, 2007
|
|
|
|
|
Add the native class to your main project, just like normal - no changes needed. You can then instantiate the native class and call its methods from your managed classes. Alternatively, you can integrate the functionality of the native class directly into a managed class. You can access the DDEML library just the same as you would from within a native class. That's what makes C++/CLI so cool for interop!
|
|
|
|
|
I thought so too. It compiles ok, but doesn't link. Seems it can't find the library, which should be internal?
error LNK2028: unresolved token (0A0002FB) "extern "C" unsigned int __stdcall DdeGetLastError(unsigned long)
...
error LNK2019: unresolved external symbol "extern "C" struct HSZ__ * __stdcall DdeCreateStringHandleW(unsigned long,wchar_t const *,int)"
...
fatal error LNK1120: 34 unresolved externals
Compiler command line:
/Od /D "WIN32" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /FD /EHa /MDd /Yu"stdafx.h" /Fp"Debug\DDE_MAIN.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /nologo /c /Zi /clr /TP /showIncludes /errorReport:prompt /FU "f:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll" /FU "f:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll" /FU "f:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll" /FU "f:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll" /FU "f:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.XML.dll"
Linker command line:
/OUT:"c:\DDE_Router\Debug\DDE_MAIN.exe" /INCREMENTAL /NOLOGO /MANIFEST /MANIFESTFILE:"Debug\DDE_MAIN.exe.intermediate.manifest" /DEBUG /ASSEMBLYDEBUG /PDB:"c:\DDE_Router\debug\DDE_MAIN.pdb" /SUBSYSTEM:WINDOWS /ENTRY:"main" /MACHINE:X86 /FIXED:No /ERRORREPORT:PROMPT
-- modified at 11:56 Friday 5th January, 2007
Added the command lines..
|
|
|
|
|
Seems like I've fixed it by just adding the unmanaged C++ class file to the project. The CLI didn't find the libraries for some reason so I added them myself:
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
probably didn't need all of them, but what the heck?
|
|
|
|
|
can we connect database through c and c++. if yes means how. if not why
s.pradeeba
|
|
|
|
|
yes.
Is this your question meant to c++/cli or Managed c++? If not you are in the wrong forum.
You are letting out some info:
What kind of database? (MySQL, MSSQL...)
|
|
|
|
|
Have you heard of google ? If not, why not ? If so, why didn't you search for this information yourself ?
Is this question about .NET programming ? If not, why is it here ? If so, how do you expect to use C in .NET ?
ADO and ODBC are two good starting terms for your google search.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
pradeeba wrote: if yes means how. if not why
Thankfully, the answer is "yes". I wouldn't know where to begin on the "why?" 
|
|
|
|
|
I have a program which run fine on my computer and on some client computer.
However, recently, it started to crash at launch time with a mysterious error as in the title.
After a bit of investigation it is probably a missing native DLL dependency in a Managed C++ library.
Investigating a bit more with depends I think the culprit is the following:
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.163_x-ww_681e29fb\msvcm80.dll
On my computer I have 2 versions of it:
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.163_x-ww_681e29fb\msvcm80.dll
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd\msvcm80.dll
But on the target computer I have only one version:
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd\msvcm80.dll
And "depends.exe" tells me that my ManagedC++ library is using the other version:
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.163_x-ww_681e29fb\msvcm80.dll
Although both version are quite old (06/2006 & 09/2006) (i.e. it's probably not a recent windows update) I think this is the problem.
Now why is the linker is linking to the newer version?
How can I link to the older version?
Any tips?
|
|
|
|
|
Super Lloyd wrote: Any tips?
Yes.
Safe thing.
Update your VS2005 runtime library.
Dangerous mode:
create dir:
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd
and copy msvcm80.dll to that dir.
|
|
|
|
|
It's for a shareware.
I need something that could be automated by the installer....
|
|
|
|
|
Whell, you can use VS2003 or VS2005 and put in also project Dependecy when creating setup with IDE.
Or you can yust copy that dll to your exe folder. In this case, other software woudn't have access to it.
|
|
|
|
|
Which dependency?
I won't just copy a Microsoft DLL in my folders!
And I'm not using an installer project, it's a manually build installer with some 3rd party tool....
|
|
|
|