|
But is hat how other programs do fullscreen?
|
|
|
|
|
Doesn't it give the effect you want! I guess all .Net Windows Forms use that unless they use Win32 API directly. Other applications and games may use DirectX or OpenGL to do fullscreen but i think they all translate down to Win32 API (or instruct the Graphics card to output the buffer to fullscreen, I don't know).
Eslam Afifi
|
|
|
|
|
|
Thank you. I appreciate that.
Eslam Afifi
|
|
|
|
|
hi all
i'm usign sharperCv (a wrapper of opencv) for a motion tracking algorithm. In windows xp there are no problem, but in win vista when i compile there are this problem:
DllNotFoundException
Impossibile caricare la DLL 'highgui.dll': Accesso a posizione di memoria non valido. (Eccezione da HRESULT: 0x800703E6).
(impossible to load dll highgui.dll: Access to a non valid position in memory HRESULT: 0x800703E6)
all dlls are in debug folder of the project....i'm using visual c# 2008 express...may be the framework???
Bye Carlo
|
|
|
|
|
Arcer wrote: may be the framework???
I wouldn't think so, I suggest looking into the differences of path names perhaps? Other then that, I'm stumped and haven't encountered an error like this before to give a more detailed answer.
|
|
|
|
|
Try using Dependancy Walker[^], it should help you find what is missing on the Vista machine.
|
|
|
|
|
dependency walker say ieshims.dll is missing in my vista machine....where can i download it?
|
|
|
|
|
IEShims.dll should be in your "Program Files\Internet Explorer" folder, it's part of the initial install. It appears these libraries are installed with automatic updates;
From IE8 Prerequisites:[^]
Ieshims.dll is used to maintain application compatibility with earlier versions of Internet Explorer, and replaces the functionality provided by the iebrshim.dll, AcRedir.dll, AcLayers.dll, and shimeng.dll files.
|
|
|
|
|
I've found ieshims.dll and copy it in debug folder (in the same folder of sharperCv dll called opencvWrapper). Dependency walker now output this:
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
and IEFRAME.DLL is colored with pink color...
the error still remain....
sharpercv are is a dll compiled in 2004, with an old framework could be it the couse?
|
|
|
|
|
Arcer,
did you resolve SharperCV under Vista?
|
|
|
|
|
I've created a custom column for my DGV, but can't select it as the ColumnType in the designers edit column dialog. I get the following error message:
Property value is not valid.
No parameterless constructor defined for this object
Since my classes have been commented back to this I can't figure out what the problem is:
public class ImageTextColumn : DataGridViewColumn
{
ImageTextColumn()
{
this.CellTemplate = new ImageTextCell();
}
}
public class ImageTextCell : DataGridViewCell
{
public ImageTextCell()
{
Style.Padding = new Padding(30, 0, 0, 0);
}
}
Both the column and cell classes consist of only a parameterless constructors. What else does the designer want?
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
This works fine for me....
public class MyColumn : DataGridViewColumn
{
public MyColumn() { this.CellTemplate = new MyCell(); }
}
public class MyCell : DataGridViewCell
{
public MyCell() { }
}
Just spotted it...you're missing public from the constructor definition of the column.
|
|
|
|
|
if the error message would've said "public... " it'd've been obvious.
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
Happens to the best of us more often then not
|
|
|
|
|
I am developing a new part to a program I work on. It connects to a java process via a socket. At the moment, the user will send a message down the socket, and the Java process will return with 1 or more values. This works fine.
I'd like to extend the program, so that the user could send multiple messages (sometimes 10k), thus I get into the problem of spamming the socket, and the Java process having to then reply to each message, which could return multiple messages (10 for each sometimes).
Does anyone have any good ideas of how I'd make this process better? and more importantly, faster!
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
A common error in design in sockets programming with TCP/IP sockets that I see occurring constantly are status messages being sent to verify receipt. TCP/IP is a guaranteed in order protocol. Eliminate the status messages and only send a message if requested explicitly. Furthermore, TCP keep-alive should be used and not keep alive messages.
|
|
|
|
|
I don't send status messages, I only send data that is required.
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
You said that the Java server is spamming you with responses. So I assumed they were unnecessary. If the responses are necessary then they are not spam and then only way to reduce them is to not send messages. Your TCP/IP stack on Windows and from within Java should both be using the Nagle Algorithm so as long as that is not disabled and you do not force a send then the best you can do is send data when you have it and request data when you need it.
If you want to reduce bandwidth for streaming extremely large files you can compress the files using build in compression (see the J# library since it will have the same compression libraries as Java will have access to) or you can author your own.
|
|
|
|
|
Hi all,
I am trying to write a database connection error to a Browser using Response.write("error message") command.
try
{
cnx.Open();
cmd.ExecuteNonQuery();
// sResult = int.Parse(par.Value.ToString());// 1 if successful insert
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
finally
{
cnx.Close();
}
I would like to write the error message to a browser if connection is not possible.
can i do this?
resonse.write (Console.WriteLine(ex.Message));
|
|
|
|
|
This isn't my field of knowledge, but I would think that you would do Response.Write(ex.Message). As it is now, that line of code won't even compile
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
So your application is a console application? Why are you unable to write to the Console, the only thing I fear is that you are creating a windows forms application and you are still trying to write to the console.
|
|
|
|
|
Yes, the first answer (Computafreak's) is correct, Response.Write(ex.Message); if your writing an ASP.NET Web Application. But, looking at your code, I suspect you are writing a Windows Application due to your reference to Console.WriteLine() . This is a stretch, you want to send a Windows Application generated error message to a web browser window? Who's browser - yours, or a user of the application? At what URL?
I think you may want to CLARIFY your question with some more details on the type of application you are writing.
Regards,
Gary
|
|
|
|
|
Hi I am writting the following code to write into text file.After Checking whether the file exixt or not ,It is giving the following error.Can any one help.
Any solution to this problem would be appreciated.
public void Ping(string hostName)
{
string path;
path = @"C:\CheckList\checklist_"+DateTime.Now.ToString("yyyyMMdd")+".txt";
if (!File.Exists(path))
{
File.Create(path);
}
TextWriter tw = new StreamWriter(path,true);
Error comes when we create text writer.
|
|
|
|
|
File.Create returns an open stream to the file created, locking it.
|
|
|
|