|
Unless you have built your C++/C code using statically linked libraries, you will need to install the Visual C++ runtime. As you haven't stated which version of C++ you are developing with, I can't point you to the correct one. If you Google for Visual C++ runtime [version] then that should find the one you want (replace [version] with the particular Visual C++ you used).
|
|
|
|
|
If you don't know exactly what are all the dependencies that you need for your executable to run a client machine, use Dependency Walker[^] to help you determine what you're missing. Usually, MS will also provide an executable to package/distribute their distributable dll's.
|
|
|
|
|
Hi thanks for your reply...
When the dependency walker has been installed the visual c++ is missing these dll.
MSVCM90D.DLL,MSVCR90D.DLL,IESHIMS.DLL,WER.DLL
Got error as
Error: The Side-by-Side configuration information for "c:\documents and settings\administrator\my documents\givi\learning materials\acadamic_project\openpowerlinkdemoappv1.8(final)\openpowerlinkdemoappv1.8(final)\openpowerlinkdemoappv1.8\release\OPENPOWERLINK.NET.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Error: At least one required implicit or forwarded dependency was not found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
How to make this dll to be accessed by visual c++ project?
|
|
|
|
|
It seems that you are trying to deploy a debug build on a non Visual studio client.
You cannot do it. The c run-time is release only.
|
|
|
|
|
Hi,
I want to compare the unicode strings of NVarchar Fields.... Is it possible...?
But when I check in English Laguage string....simply its working fine...
But when I check with Arabic and English datas...its not working well..
Thanks for guidences...
My Codes...
ChkItm1 = String::Empty;
String^ ChkItm1=String::Empty;
String^ KyPrs1=String::Empty;
ChkItm1 = MyGlobalData::PartyTbl->Rows[N7]["supplier_name"]->ToString();
if 'N'???????? (ChkItm1->Trim()->Substring(0, MyGlobalData::KyPrs1->Trim()->Length)=='N'????????
MyGlobalData::KyPrs1->Trim()) {
blah...blah...blah...
}
|
|
|
|
|
It seems like you'd want a Culture-Invariant comparison.
Something like this?
bool ignoreCase = true; // you may want false
if (String::Compare("xxxxxx", ChkIt1->Trim()->etc..., ignoreCase, CultureInfo::InvariantCulture) == 0)
// a match!
else
// not a match
John
|
|
|
|
|
Thanks John
|
|
|
|
|
I have a HeaderFile MyProject_Datas.h
public ref class MyUsefulDatas
{
blah...blah...blah...
public: static System::Void Item_Name( System::Object^ Sender, System::Windows::Forms::KeyEventArgs^ e) {
blah...blah...blah...
}
public: static System::Void Party_Name( System::Object^ Sender, System::Windows::Forms::KeyEventArgs^ e) {
blah...blah...blah...
}
};
And now from my Form2 - textBox2 I would like to declare
textBox2->KeyDown += gcnew KeyEventHandler(MyUsefulDatas, &MyUsefulDatas::Party_Name); ????????
Iam not getting the above line........
Also I would like to learn same statement, how to use in "delegate" statement like the below.....????
textBox2->KeyDown += delegate { .....???????? }
Thanks...
|
|
|
|
|
After spending my whole day I found the crazier worth of the word, what is "static" ...
Also after removing the word "static" from the above declaration it works well..
Let it be useful to the searchers....
public ref class MyUsefulDatas
{
public: System::Void Party_Name( System::Object^ Sender, System::Windows::Forms::KeyEventArgs^ e) {
blah...blah...blah...
}
};
MyUsefulDatas^ MyUseDta=gcnew MyUsefulDatas;
textBox2->KeyDown += gcnew KeyEventHandler(MyUseDta, &MyUsefulDatas::Party_Name);
Thanks...Thanks...
modified 16-Apr-12 10:53am.
|
|
|
|
|
Can I help to convert the next C++/CLI code to Visual Studio 2002 Managed C++?
bool IsPrinterOk(String ^printerName)
{
bool bResult=false;
HANDLE hPrinter;
IntPtr pPrinterName=Marshal::StringToHGlobalUni(printerName);
WCHAR *pChar=(WCHAR *)pPrinterName.ToPointer();
if(::OpenPrinter(pChar,&hPrinter,NULL)==0)
return false;
DWORD bytesNeeded;
::GetPrinter(hPrinter,2,0,0,&bytesNeeded);
PRINTER_INFO_2 *pf=(PRINTER_INFO_2 *)GlobalAlloc(GPTR,bytesNeeded);
if(::GetPrinter(hPrinter,2,(LPBYTE)pf,bytesNeeded,&bytesNeeded)!=0)
if(pf->cJobs==0 && pf->Status==0)
bResult=true;
GlobalFree(pf);
ClosePrinter(hPrinter);
return bResult;
}
What changes must be made in the code?
Thanks.
|
|
|
|
|
goncri wrote: What changes must be made in the code?
Try compiling it and see what errors or warnings you receive.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Are you sure you want 2002 Managed C++?
The pre-CLI managed C++ syntax was a failed experiment - the syntax was available only for a short time and it was quickly superceded by C++/CLI (even C++/CLI is not commonly used).
David Anton
Convert between VB, C#, C++, & Java
www.tangiblesoftwaresolutions.com
|
|
|
|
|
Hi,
I like to convert the following codes from c# to VC++2010. Thanks for the helps.
Actually the codes for dataGridView - Enter Key movement from one cell to another cell [like a tab key...]
public class MyDataGrid : DataGridView
{
protected override bool ProcessDialogKey(Keys keyData)
{
Keys key = keyData & Keys.KeyCode;
if (key == Keys.Enter)
{
base.OnKeyDown(new KeyEventArgs(keyData));
return true;
}
else
{
return base.ProcessDialogKey(keyData);
}
}
}
Thanks 
|
|
|
|
|
public ref class MyDataGrid : DataGridView
{
protected:
virtual bool ProcessDialogKey(Keys ^keyData) override
{
Keys ^key = keyData & Keys::KeyCode;
if (key == Keys::Enter)
{
DataGridView::OnKeyDown(gcnew KeyEventArgs(keyData));
return true;
}
else
{
return DataGridView::ProcessDialogKey(keyData);
}
}
};
David Anton
Convert between VB, C#, C++, & Java
www.tangiblesoftwaresolutions.com
|
|
|
|
|
Hi,
Iam very new in VC++2010. And at first I create a new project, and I changed the name
Form1() as MyMainForm()...
And after it shows error MyProject.cpp
#include "stdafx.h"
#include "MyMainForm.h"
blah...blah...blah...blah..
Application::Run(gcnew MyMainForm());
From the bove line it shows error C2061: Syntax error : Identifier 'MyMainForm'
So how to solve this problem...
Thanks For Startup...
|
|
|
|
|
Let it be usueful to someone like me..
Just I renamed the file - Form1 as MyMainForm in entire solution....
Then the error gets clear...
Thanks & Regards,
PARAMU
|
|
|
|
|
This is fairly standard; if you change the name of any object, then you must change it everywhere.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
I was wondering, when coding C++ in WinXP, if there is any performance difference (CPU cycles) between "float" (32bit) and "double" (64bit) variables.
Thanks.
|
|
|
|
|
This is the wrong forum for this question because it has nothing to do with C++/CLI.
Use the regular MFC forum instead.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
It depends on the hardware that you have as well as the software implementation. You would need to run some tests to check.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Someone voted you down... +5
|
|
|
|
|
Thanks, but not to worry, there are 1-voters all over the place.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
|
Like Richard said, it will vary according to hardware (64bit systems will handle 64bit number a whole lot faster than 32bit systems) and whatever your software happens to be doing with it. For example, if you're using a 64bit number to keep track of some number of iterations, I suspect increased latency would be minimal (if noticeable at all).
|
|
|
|
|
As posted previously it really depends on the hardware, but in general unless it is an older PC the difference will probably be neglible.
Thanks,
Sean
|
|
|
|