|
|
Sorry, there's just not enough to work with here. We cannot even formulate a guess without seeing some code. Are you able to repro the problem in a very small test application?
|
|
|
|
|
Faez Shingeri wrote: an anyone please help me fix the issue of video display hanging on Windows?
A "video display" is a piece of hardware. It doesn't "hang". Applications on the other hand do.
Given that you are using C++ and windows and linux, it is obvious that you must explain in greater detail exactly what your application does and exactly how it does user input.
|
|
|
|
|
HI,
is it possible to find a pointer from a list of pointers?
I know i can do it with find_if and a predicate, but since pointers are just addresses it should probably be possible to search them as if they were integers, with "find" function.
|
|
|
|
|
You are correct, you can test pointers for equality so a simple compare will do the job.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
Hi !
You can browse from head to tail of list.
|
|
|
|
|
<code><code><code></code></code>
We have developed our project with the following technologies Visual
C#, Visual C++ and C Language. When we tried to execute our project in
client machine, It works only if the system has Visual C++ installed.
Otherwise it throws an Unhandled exception.The Visual C++ program
which we have developed is dependent on 4 native DLL such as
mscorlib.dll, microsoft visual c.dll, system.dll and data.dll. Visual
C++ project does not load the above mentioned assemblies during run
time.
So we kindly request you to provide some inputs on this to proceed further.</code>
|
|
|
|
|
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.
|
|
|
|