|
Jason Henderson wrote: Tried running the CLR Profiler with the app but the clr doesn't start.
Can you run any other .NET application on this machine? If not, I guess the problem will be with the setup of .NET framework.
Best wishes,
Navaneeth
|
|
|
|
|
While looking for some tool to help I installed PerfMon which I believe is a .net app and it ran fine. All of our other native apps run fine as well.
"Make everything as simple as possible, but not simpler." - Albert Einstein Jason Henderson
|
|
|
|
|
|
It gets installed in our software's installation script, but I reinstalled it anyway. Didn't help.
"Make everything as simple as possible, but not simpler." - Albert Einstein Jason Henderson
|
|
|
|
|
Two things may help you:
1.Use Depends(dependency walker) on the cli module.
I beleive that you will find a missing environment path or a missing dll that you assumes you have.
2.Try Fusion Log - it will give you an indication of .net binding errors.
Good luck,
Yoav
|
|
|
|
|
Hi All,
I am working on windows platform with no administrative privileges. I want to send messages/files from my pc to another in LAN. I am using one software 'IP Messanger' which doesn't required any privileges to install it or to send messages/files from one pc to another in LAN. I know DOS commands like 'send','msg' etc. but they need 'Messenger' to be on. My pc's 'Messenger' is off but still 'IP Messenger' works fine. How can the software work well without turning 'Messenger' service on ? Also i want know that, is there any method/command available in DOS to send messages/files without 'Messenger' service?
Thanks
Nilesh
|
|
|
|
|
I don't think this is the right place to post this question.
|
|
|
|
|
I already responded to this question here[^]. If you have supplementary queries then post them in the original thread, do not start a new thread with the same question.
|
|
|
|
|
hummmmm. but i was looking for some more different answers...
|
|
|
|
|
Nilesh Hamane wrote: i was looking for some more different answers.
What does this mean? Your question has been answered according to the information you provided, I have no idea what more you need to know. If you have a specific problem with your own programs then you can post them here. If you have a problem with someone else's programs then you should try asking the provider. For example, if IP Messenger has some issues then try asking the people who wrote the program for help.
|
|
|
|
|
Actually what i'm trying to do is to get a multiline rows selection without the problem of holding the ctrl key (i'm developing a touchscrenn app).
By now i quite get it with a list of selected lines, but if i try to click fast on the rows it give me some painting error. Can someone give me a hint. (Maybe i should fire the ctrl command? i don't know how to simulate the pressdown command )
#ifndef _CSTDGV_
#define _CSTDGV_
namespace primoAlpha {
using namespace System;
using namespace System::Drawing;
using namespace System::Windows::Forms;
using namespace System::Security::Permissions;
public ref class personalDataGridView : DataGridView
{
public:
personalDataGridView()
{
this->selectedRowIndexes=gcnew Collections::ArrayList();
this->MultiSelectForced=false;
}
property bool MultiSelectForced
{
bool get() {
return _MultiSelectForced;
}
void set(bool value) {
this->_MultiSelectForced = value;
this->selectedRowIndexes->Clear();
processSelectedRowIndexes();
}
}
protected:
virtual void OnCurrentCellChanged (EventArgs^ e) override
{
if (this->CurrentRow!=nullptr && _MultiSelectForced) {
int act_row=this->CurrentRow->Index;
if (selectedRowIndexes->Contains(act_row)) {
selectedRowIndexes->Remove(act_row);
}
else selectedRowIndexes->Add(act_row);
processSelectedRowIndexes();
}
DataGridView::OnCurrentCellChanged(e);
}
private:
Collections::ArrayList ^selectedRowIndexes;
bool _MultiSelectForced;
void processSelectedRowIndexes() {
this->SuspendLayout();
this->ClearSelection();
for (int i=0;i<selectedRowIndexes->Count;i++) {
if (selectedRowIndexes[i]!="0") {
this->Rows[Convert::ToInt32(selectedRowIndexes[i]->ToString())]->Selected=true;
}
}
this->ResumeLayout();
}
};
}
#endif
|
|
|
|
|
Ok i find myself the solution...if you need...
#ifndef _CSTDGV_
#define _CSTDGV_
namespace primoAlpha {
using namespace System;
using namespace System::Drawing;
using namespace System::Windows::Forms;
using namespace System::Security::Permissions;
public ref class personalDataGridView : DataGridView
{
public:
personalDataGridView()
{
this->selectedRowIndexes=gcnew Collections::ArrayList();
this->MultiSelectForced=false;
}
property bool MultiSelectForced
{
bool get() {
return _MultiSelectForced;
}
void set(bool value) {
this->_MultiSelectForced = value;
this->selectedRowIndexes->Clear();
processSelectedRowIndexes();
}
}
protected:
virtual void OnCellMouseDown(DataGridViewCellMouseEventArgs^ e) override
{
DataGridView::OnCellMouseDown(e);
if (e!=nullptr && _MultiSelectForced) {
int act_row=e->RowIndex;
if (selectedRowIndexes->Contains(act_row)) {
selectedRowIndexes->Remove(act_row);
}
else selectedRowIndexes->Add(act_row);
processSelectedRowIndexes();
}
}
virtual void OnMouseMove(MouseEventArgs^ e) override
{}
private:
Collections::ArrayList ^selectedRowIndexes;
bool _MultiSelectForced;
void processSelectedRowIndexes() {
this->SuspendLayout();
this->ClearSelection();
for (int i=0;i<selectedRowIndexes->Count;i++) {
if (selectedRowIndexes[i]!="0") {
this->Rows[Convert::ToInt32(selectedRowIndexes[i]->ToString())]->Selected=true;
}
}
this->ResumeLayout();
}
};
}
#endif
|
|
|
|
|
Hello. I posted this here because I noticed this issue first while working on a C++/CLI project. But it equally applies to C#.NET projects which makes me think it's a general .NET issue.
Has anyone had troubles with the Form.StartPosition property value CenterParent in Windows 7? I know my invoking code is fine because I started this project on WinXP and everything was happy. Code like this in the main application form:
MyForm^ f = gcnew MyForm();
f->Show(this);
Despite the fact that I'm passing the reference to the parent in the Show() call, the child form shows up in the upper left corner rather than the center of the parent.
Any ideas?
Thanks in advance.
modified on Wednesday, December 9, 2009 3:34 PM
|
|
|
|
|
What happens if you explicitly set the Parent property
of MyForm before calling ShowDialog()?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
First, I have to correct myself. The problem is in Show(), not ShowDialog(). I tried to explicitly set the parent ahead of time like this:
MyForm^ f = gcnew MyForm();
f->Parent = this;
f->Show();
Doing so gave me a runtime error at the line where I set the Parent property:
ArgumentException: Top-level control cannot be added to a control.
|
|
|
|
|
Xpnctoc wrote: ArgumentException: Top-level control cannot be added to a control.
Maybe set TopLevel to false?
MyForm^ f = gcnew MyForm();
f->TopLevel = false;
f->Parent = this;
f->Show();
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
That didn't fly either. I didn't get an error, but the child window just plain didn't show up anywhere on the screen, taskbar, or anywhere else.
|
|
|
|
|
It was worth a try... I don't know what your parent window
is so I was just guessing, based on the fact there's a difference
between "parent" windows and "owner" windows.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Well maybe that's part of my problem. I wasn't aware there is a difference. Could you explain that or provide a link that would elaborate on that more?
|
|
|
|
|
I would start in the Form class properties[^]
(Owner and Parent).
Also maybe search on ".net parent vs owner" or similar.
What are you using as a parent? A Win32 window (HWND) or another
Form/Control?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
The main application is a .NET Form.
|
|
|
|
|
it looks to me the only way to do this without making
the form modal is manually...
MyForm^ f = gcnew MyForm();
f->StartPosition = FormStartPosition::Manual;
f->Location = System::Drawing::Point((this->Width - f->Width) / 2 + this->Location.X, (this->Height - f->Height) / 2 + this->Location.Y);
f->Show();
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
for ( y = 10 ; ; y++)
{
for (int x = 10; x <= ImageWidth/2 ; ++x)
{
colorref = Image->GetPixel(x,y);
R = GetRValue(colorref);
G = GetGValue(colorref);
B = GetBValue(colorref);
if ( R < 200 && G < 200 && B < 200)
{
miny_StudentName = y;
minx_StudentName = x;
goto exitfor;
//break;
}
}
exitfor:
}
Failure is Success If we learn from it!!
|
|
|
|
|
Does this mean anything? Do you have a question?
|
|
|
|
|
I'm attempting to write communication software to talk to a laser via RS232. If I setup a Managed C++ class that has a SerialPort variable how can I test the variable to see that it is present or has a valid value.
So in my code I have:
.h file
--------
SerialPort^ sp;
.cpp file
---------
if(sp) //Testing to see if 'sp' has already been assigned a value.
{
if(sp->IsOpen)
sp->Close();
}
sp = gcnew SerialPort("Com1");
Any idea how to check to see if an Object handle has been assigned?
Thanks,
George
|
|
|
|