|
m using .net framework 2. and compling my c# project using nant(new version). but while creating msdn like help(using ndoc task in nant build file), m not getting the description at all. can anybody tell me the reason. Thanks in advance...
pooja
|
|
|
|
|
Start by checking if the description is present in the xml file, to determine if it's the compilation or the documentation creation that fails.
---
b { font-weight: normal; }
|
|
|
|
|
First of all thanks for ur reply. Yes,Description is present in the generated xmls.(From description I mean the comments written in the various tags eg. ,<param /> etc...). These comments are not there in MSDN like help..
pooja
|
|
|
|
|
Well, NDoc does not officially work with .NET 2.0 yet so you could expect problems.
Kevin
|
|
|
|
|
Hi,
Im new to codeproject, I was hoping to get some help. Im tryin to convert the Image into Byte stream and send it to MySQL database. (Hence, so I can send image to database)
MemoryStream^ mst = gcnew MemoryStream();
viewPictureBox->Image->Save(mst,viewPictureBox->Image->RawFormat);
Byte BinaryImg[] = mst->GetBuffer(); <- doesnt like this line
MySqlCommand^ cmd = gcnew MySqlCommand("SELECT * FROM Patient", Mycon);
cmd = gcnew MySqlCommand("INSERT INTO patient(Leftimage) VALUES" + "('"+viewPictureBox+"')", Mycon);
I get the following error:
c:\documents and settings\hasan bajis\desktop\lei_patient_new\lei_patient\lei_patient\Form1.h(1230) : error C2440: 'initializing' : cannot convert from 'cli::array ^' to 'unsigned char []'
Im using MC++.
Can someone plz give me hand.
thanks alot in advance
hbjs
makaveli
makaveli
|
|
|
|
|
The trouble you have is that using managed C++ means you have two different memory models, AKA MC++ is gay. If you must do this, then you need to convert the data, probably using Marshall::something. Nish would be a better person to ask, and the C++/CLI forum a better place to get his attention.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks mate,
Ill post it tehre
makaveli
|
|
|
|
|
I'm looking for a way to capture information regarding the movements of windows belonging to an application outside my own. I'm working in C#.
My situation, in brief: I have a window-management tool which takes windows created by another application and sizes/positions them on the desktop based on a user's pre-defined preferences. I currently achieve this via a timer-based loop which reads top-level windows through Windows API calls.
Instead of this, I would like to monitor the windows message queues to note windows position changes; eventually, I would also like to monitor creation and destruction of windows, but I'll start with reading movement.
The trouble is that while there are many guides for writing local hooks, there are few for global hooks -- and the global hooks are mostly about capturing mouse and keyboard.
I know the target window handles; I believe I want to create Local hooks into specific threads (outside my application.) These will involve the same memory-context problems as global hooks, and I suspect I will need a .DLL with the hook handling code. I am unsure how to achieve this in VS 2005 and
C#; it seems I'm forced to use some compiled C code? Is that correct?
If anyone can offer advice or good references, it would be greatly appreciated. . . or if someone with experience building .DLL's for handling hooks can lend a hand, I'd be thrilled.
Again, my entire application is built and works; I just want to get away from the inelegant solution of repeatedly checking all window placements to compare against the last known position; I'd really like to make the architecture event-driven.
Thanks in advance.
|
|
|
|
|
According to this[^] KB article, you can't write global hooks in C#, other than mouse and keyboard hooks. So I guess you're out of luck, you'd have to write in C++ or C.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I had come to that sad conclusion, too.
I can't bring myself to take up the unfamiliar task of writing a DLL export in C++ when the application already works. . . but I'm going to try to find a collaborator who will produce the necessary DLL as a joint project/article here on Code Project. I can tell exactly what information we need to capture and which hooks to use; we can have the DLL track the target window's action via hook, pass the information to the source .NET application via windows messages, and have the source application read the message via a local hook.
I think it would be a great demonstration project showing how to really put things together in a project. I'm going to draft out the plan and make some posts soliciting a partner sometime next week.
|
|
|
|
|
I`m going to develop an mp3 application for windows mobile 5 capable smartphones. So what are the softwares i need? and suggest me some good books and demo codes for that
dipankar
|
|
|
|
|
If you want to know about mappoint in mobile 5 operating system demo.May be i can help you
John
|
|
|
|
|
Hi,
In JAVA, a pair of public/private keys can be generated using KeyPairGenerator. Then the getEncoded() method of public key or private key can be called to encode the key into a standard representation before sending it to a some other party. I know private key is not supposed to be sent out to a third party but still it can be encoded in a standard format as specified by PKCS#8 by using PrivateKey.getEncoded().
In .NET, a pair of keys are generated internally by an instance of RSACryptoServiceProvider. If I want to achieve the same functionality as that of JAVA's [PublicKey|PrivateKey].getEncoded() for both private and public key, how to achieve it in .NET? For example, I should be able to encode the public key in a standard format as specified in X.509 format before sending it to a third party. Similarly for private key. Any example code illustrating the same will be extremely helpful.
Regards,
P.Prasad
|
|
|
|
|
I have an application that acts as a remoting server. The app has a front end with lots of controls, and the remoting is (as it must be) a class in a class library of its own, which is instantiated by the remoting system when a call is made by a remote client (as I understand it).
I want to be able to update stuff on the screen when a remote client calls a method in the server, but I can't work out how to communicate between the server object and the rest of the application. Can anyone tell me if this is possible and how it's done.
Dave
|
|
|
|
|
When you setup the remoting on the server side, instead of allowing the remoting infrastructure to create server objects, create them yourself and register it using RemotingServices.Marshal[^]. You could then expose events from those objects and subscribe to them from the GUI. Something like
class RObject: MarhsalByRefObject
{
event SomethingChangedDelegate SomethingChanged;
public void RemoteMethod()
{
SomethingChanged();
}
}
}
class GUI
{
void RegisterRemoteObjects()
{
RObject o = new RObject();
o.SomethingChanged += ...
RemotingServices.Marshal(...);
}
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Thanks Senthil. I eventually found a viable solution by getting the server class to post windows messages to the GUI. However, yours is an interesting alternative which I shall investigate. I need to understand some of these more advanced remoting techniques. Thanks.
Dave
|
|
|
|
|
Hello to all,
Actually i am very new in .Net technolgy. Can any body tell me how to make my own video server in C#.Net. For this i do to much googling. But I just found a providers of video server.
My server handle different codecs which is decoded by standered media players.
Thank You in advance.
Regards,
Divyang Mithaiwala.
|
|
|
|
|
Divyang Mithaiwala wrote: i am very new in .Net technolgy. Can any body tell me how to make my own video server in C#.Net
1. You have to learn to walk before you can run.
2. Your request is too vague. If you make an attempt at implementing a video server and have difficulty on a specific part of it then we can help, but the subject of video server design would cover a book. (or several books as there are several possible designs)
Probably a start would be to learn about sockets in .NET. And also, how much do you already know about video servers?
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
hello there; I'm new to the c# platform. I created a non-rectangular form using an article i found on this site and it works fine. how do one create an eventhandler to maximise the form like a normal window's form would?
thanks.
|
|
|
|
|
Normally, custom-shaped forms don't have a maximized feature. You'd have to resive the image your form is uing for a template, then relayout and size your controls.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
I am very new to DirectoryServices. I created an ActiveDirectory user by using DirectoryServices. I can find that added entry later-on aswell. But I still couldnt figure out that how can I delete an added user later.
I tried
DirectoryEntries.remove("username", DirectoryEntry.SchemalClassName);
as mentioned on MSDN, but its keep on givng me an error like:
Invalid DN name assigned. I think I have to get the GUID for user I want to delete but I have no idea how can I get the GUID for any user e.g. "testuser" in Active Directory
Can anybody help me?
Thanks in Advance!!!!
|
|
|
|
|
what is the main basic concept of .net Framework?
what will happen when a page is complied?
what things will happen inside the framework?
sowjanyakumar
|
|
|
|
|
.Net Programer and developer wrote: what is the main basic concept of .net Framework?
"The .NET Framework is the programming model for the .NET platform. The key components of the .NET Framework are the common language runtime and the .NET Framework class library, which includes ADO.NET, ASP.NET, and Windows Forms. The .NET Framework provides a managed execution environment, simplified development and deployment, and integration with a wide variety of programming languages." - .NET Framework documentation on MSDN
.Net Programer and developer wrote: what will happen when a page is complied?
You'll have to be more specific about this question. I'm guessing that your talking about an ASP.NET page...
.Net Programer and developer wrote: what things will happen inside the framework?
When? When the app is compiled or when it's run? Come on. Be more specific...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i want code for brick game using dotnet framework. please help me and message me the steps,idea and code, so i could know hpw it works
|
|
|
|
|
First you're hyjacking someone elses thread.
Second, noone is just oging to "give" you anything. We're here to HELP you write code, not just hand it over.
If you want a complete explanation of how a game works, start using Google. I'm not here to do your research for you.
Start with this[^]...
|
|
|
|