|
Yeah, and what's the error? Also, see the defs for the parameter types to determine exactly what they are, like what's the difference between uLongf and uLong . If they don't have any API documentation, then you probably shouldn't use it if you don't know what you're doing.
Besides, there are plenty of project already that let you ZIP files in .NET. See SharpZipLib[^]. ZIP is a standard (until recently, but that's only in the realm of encrypting contents which WinZip and PKZip can't agree on).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi,
I would like to invoke query builder application in my program or build a query builder wizard in C#. Can some one help me in graphically displaying the tables in the query builder wizard?
I want to display all tables, their attributes , and foreign key relations between tables using arrows. How can I do this??
Karteek
|
|
|
|
|
You could use SQLDMO, it will return all the info you need.
There are quite a few articles on SQLDMO here on CP, here is the Google search result.
regards,
Paul Watson
Bluegrass
South Africa
Chris Maunder wrote:
"I'd rather cover myself in honey and lie on an ant's nest than commit myself to it publicly."
Jon Sagara replied:
"I think we've all been in that situation before."
Crikey! ain't life grand?
|
|
|
|
|
I have a IComponent (like DataSet) on the ComponentTray of a Form. Having only this IComponent , how can i get a reference to the Form?
Thanks.
|
|
|
|
|
Get the Site property (returns an ISite ). Then get the Container property. There's your container for the component.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I have already tried that, and it returns an Microsoft.VisualStudio.Designer.Host.
I think that probably i should use Site.GetService to get an appropriate service that have a reference to the form. But i don't know what service is that (or even if it exist..).
Thanks
|
|
|
|
|
I guess it returns that because during design-time it's hosted in the component tray. The service that should help would be the System.ComponentModel.Design.IReferenceService .
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
It is exactly whant i was lookinig for!!
Tahnks!
|
|
|
|
|
hi all
can anybody tell me about functions in c# like _inp & _outp in VC++
or can u tell me how can I access 378,379,37A (parallel port) using API functions or C#
thanks for all
|
|
|
|
|
hi all
can anybody tell me about functions in c# like _inp & _outp in VC++
or can u tell me how can I access 378,379,37A (parallel port) using API functions or C#
|
|
|
|
|
We got a problem in our project
We get the error: Connot call invoke or invokeAsync on a contrik until the window handle has been created.
we tested: this.creatHandle
but it says that there already is an handle.
We use Invoke in some usercontrols
How could we solve this proble.
Regards
Jimmy
|
|
|
|
|
You should actually query the Control.IsHandleCreated before setting it. If this is your own control, a common solution is to queue requests and invoke them / set them / whatever in an override to OnHandleCreated . If this is not your control you're writing, then do something similar: invoke what you need to in your event handler for the HandleCreated event. This solution is suggested on MSDN for many different situations. Just calling CreateHandle may not work because some changes to some controls cause the handle to be recreated.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
How do i quary the control.IsHandleCreation in the OnHandleCreated override on my own made control?
Is there any information about this? and where?
Reagarads
Jimmy
|
|
|
|
|
You don't get IsHandleCreated in your OnHandleCreated override - the reason the event was raised (i.e., OnHandleCreated was called is because the handle was created, so of course IsHandleCreated will return true.
As with anything related to the .NET FCL, all the documentation is in the Class Library[^] reference in the .NET Framework SDK.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
i use BitBlt to capture screen. but i feel the speed is
too slow. it cost me 140ms on my P4 1.8G,i845G pc.
|
|
|
|
|
When you P/Invoke native functions, data must be marshaled. This can take some time. Another reason is that your code could be inefficient. Since you didn't post any details, it's impossible to know.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
First of all: sorry for my poor english.
I have a question I hope someone can answer to. I need my .NET/C# application has more than one icon visible from ExtractIcon(...) function. But it seems this is not possible to set from VS.NET 2003.
I can't believe. Where I get wrong?
cheers
|
|
|
|
|
if possible make it little bit more clear
hai, enjoy coding
Sreejith SS Nair
|
|
|
|
|
ok, sorry for my foggy question.
Developing an app with VC++ you can add more than one icon inside app resources.
If you want to change an icon associated to a shortcut you can select a .exe or .dll finding an icon that fits you. Usually .dlls (such as shell32.dll) have many icons available, while .exes have one. But it is possible to find more than one icon inside .exes resources.
I need to have 2 icons available from my .exe written with VS.NET and C# but it seems I can add only one icon throught "Application Icon" property in [MyApp Property Pages] dialog.
Every resource file you add to your project with "Build Action" property set to "Content" or "Embedded Resource" is not visible from the "Change Icon" dialog.
So, I'd like to know if there is a way to do what I need.
|
|
|
|
|
You don't need to use IExtractIcon , then; you're trying to add icons to your application.
When you compile an assembly - despite the similar extensions to native applications - it is very different. If you want to add icons to your application, you either have to open your application after compiling in VS.NET (as resources) and add icons manually. This can be a pain, obviously, since you have to do this after each compile. There is no support in VS.NET 2002 or 2003 to add additional icons (might be in VS.NET 2005, but I haven't looked for such an option and it's installed on my other partition).
You can do this with the command-line compiler, however (csc.exe). Create a resource file (.rc - the "old school" resource file format for VC++) and pass the path to the /win32res switch when you compile. If you don't want to use the command-line compiler with all the necessary files (plus other compilation steps necessary, like running the licgen.exe and resgen.exe to compile licenses and resourse), then you can use a build tool like NAnt[^]. You still have to create a build script with everything necessary, but this at least tracks whether files have been changed and builds them in a similar fashion as VS.NET.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks a lot. That's what I need to know
|
|
|
|
|
i am not sure about C#(upto mylevel best)
but i got a little code from VC++.net
// The pointer to my image list.
extern CImageList* pmyImageList;
extern CDC* pmyDC;
int i, dx, cx, cy, nCount = pmyImageList->GetImageCount();
HICON hIcon;
::ImageList_GetIconSize(*pmyImageList, &cx, &cy);
// Draw the images of the image list on the DC.
for (dx=0,i=0;i < nCount;i++)
{
hIcon = pmyImageList->ExtractIcon(i);
pmyDC->DrawIcon(dx, 0, hIcon);
dx += cx;
}
try this
hai, enjoy coding
Sreejith SS Nair
|
|
|
|
|
Except he's actually trying to add icons to his compiled executable. I don't know why he thought he needed IExtractIcon or some wrapper function.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I NEED TO ASK YOU ONE THING. WHETHER ANY WRAPPER IS THERE IN C3 TO GET A LIST OF ICON AS HE TOLD ABOVE
hai, enjoy coding
Sreejith SS Nair
|
|
|
|
|
Do you have any "netiquette"? Don't type in all caps. Not only is it harder to read, but it's also called "flaming" and is an online form of yelling.
There is none in the .NET FCL, but there may be on this site. I do know that there are articles that talk about how to enumerate and get all the icons in an executable (note, this doesn't use IExtractIcon , which is used by the shell and other applications to extract a file association icon). I even wrote a C++ COM object (ATL) that does this.
Microsoft MVP, Visual C#
My Articles
|
|
|
|