|
You've got an OpenFile control in the Toolbox Window waiting for you,
And I swallow a small raisin.
|
|
|
|
|
There are some component in CP.Check C# section.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
How is it done? Does anyone have any examples of a C++ app calling a C# DLL?
Can the code in the below zip be converted straight to C#?
http://girlpower2.dhs.org/downloads/shodan_plugin_sdk.zip
|
|
|
|
|
I just gave a look in MSDN to make sure there was no solution, and I have found that if your managed code exposes COM public interfaces and methods, then yes, it is possible to do it. This does not look easy, and the C# DLL must be rewritten to expose interfaces, and stuff. Just give a look here.
And I swallow a small raisin.
|
|
|
|
|
Problem:
During develpoing my application I have changed name of namespace for my main form app.
My app namespace is Analyzer my MainForm namespace is Analyzer.View
Now I am trying to add some ImageList to my MainForm. During running application MissingManifestException is thrown. I have chacked Manifest using Ildasm and there is an entry
<br />
.mresource public Analyzer.MainForm.resources<br />
In my opinion shoud be
<br />
.mresource public Analyzer.View.MainForm.resources<br />
Recompiling doesn't help. Is this mean that MainForm.resX is in wrong (old) namespace? If yes how to change this namespace?
|
|
|
|
|
Hi,
Well, I guess it's a design quesiton.
I try to write a layout engine with two classes in it. The LayoutPanel class acts as a container for either LayoutPanel or LayoutItem, where LayoutItem is simply an object that stores the width and height of a visible item. and here is my solution:
class LayoutPanel: Component, IContainer
class LayoutItem: Component
is this ok? or better to have an abstract class on top of both (because both of them have widths and heights as attributes).
Thanks
|
|
|
|
|
Hey what's up coders...
I guess my question is pretty much the subject but the software I am interested in selling includes a few of the shell32.dll icons! Is this software still sellable or is microsoft gonna get me?
If anyone knows it would be much appreciated if they could get back to me.
Thanks so much.
|
|
|
|
|
I think you should modify them by a few pixels each to be safe.
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining.
Said by Roger Wright about me.
|
|
|
|
|
Initially, I want to fetch or get a file from another machine either through local net or network share, and "win32_find_data" seems to be a good package for this task. But if I want to use it in C# or VB.NET, how should I do it? Or is there any other package I can use? Thanks a lot!
|
|
|
|
|
Hi
You will need to define 2 structures in C# first namely, FILETIME and WIN32_FIND_DATA. As:
struct FILETIME {
int dwLowDateTime;
int dwHighDateTime;
}
struct WIN32_FIND_DATA {
int dwFileAttributes;
FILETIME ftCreationTime;
FILETIME ftLastAccessTime;
FILETIME ftLastWriteTime;
int nFileSizeHigh;
int nFileSizeLow;
int dwReserved0;
int dwReserved1;
string cFileName;
string cAlternateFileName;
}
[DllImport("kernel32.dll")]
static extern IntPtr FindFirstFile( IntPtr lpfilename, ref WIN32_FIND_DATA findfiledata);
[DllImport("kernel32.dll")]
static extern IntPtr FindClose( IntPtr pff);
public static WIN32_FIND_DATA FindFile(string filename)
{
WIN32_FIND_DATA fd;
IntPtr pff = FindFirstFile(Marshal.StringToHGlobalAuto(filename), ref fd);
if (ppf == IntPtr.Zero) throw new FileNotFoundException();
FindClose(ppf);
return fd;
}
Thats should do it, didnt check. Perhaps the TCHAR in the structs, but this should set u well on your way. Obviously, you can Add the other FindFile functions as well.
Maybe there is something in .Net doing the same already???
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
HAHA
There is an example on MSDN doing exactly what you need. Pretty much the same as above.
Look here, direct MSDN link, sorry dont have weblink, but should be easy to find.
FindFile Sample [C#][^]
Enjoy
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
And finally the .NET way....jeez i'm bored today
Directory.GetFileSystemEntries Method
Returns the names of all files and subdirectories in the specified directory.
[Visual Basic] Overloads Public Shared Function GetFileSystemEntries(String) As String()
[C#] public static string[] GetFileSystemEntries(string);
Returns an array of file system entries matching the specified search criteria.
[Visual Basic] Overloads Public Shared Function GetFileSystemEntries(String, String) As String()
[C#] public static string[] GetFileSystemEntries(string, string);
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
Lets say I wanted to have a GUI application go out and get multiple stock quotes from many different sites. However, I would like each process to be independent of the other, because one website might not respond well. For example, I don't want the first process to hold up the others. I also will need some kind of response (write quote to GUI) from that process
Suppose I have a method GetQuote , and I want it to return the quote.
string GetQuote(string companySymbol, Uri siteToGetTheQuoteFrom)
Note: Thread does not necessarily mean the .NET object I am trying to use it in a general generic sense.
Thread1 -> GetQuote("ABC", http://www.nasdaq.com)
Thread2 -> GetQuote("MSFT", http://msnmoney.com)
Thread3 -> GetQuote("ACN", http://fool.com)
What approach would I take, using Threads or Async calls via delegates ?
Thanks in advance
Soliant | email
"The whole of science is nothing more than a refinement of everyday thinking." -Albert E.
|
|
|
|
|
Hi there
I saw a user code sample of a web spider on GotDotNet.com. It was written (very cleverly indeed) by one of MS's people (soz cant remember name now).
In the example he uses a managed ThreadPool and fires the requests from there. I would say this looks like your best bet.
Hope you find it, else i'll try get it
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
|
leppie wrote:
In the example he uses a managed ThreadPool and fires the requests from there. I would say this looks like your best bet.
Async delegate calls use the ThreadPool to perform their operations so it would essentially be the same
James
"And we are all men; apart from the females." - Colin Davies
|
|
|
|
|
I've got a client application which defines a class that has a CultureInfo Porperty, now if i try to pass this class as Parameter to my Webservice the engine says "System.Globalization.CultureInfo cannot be serialized because it does not have a default public constructor.
".
But CultureInfo is marked as [Serializable], where's the problem and how to fix it ?
.:Greets from Jerry Maguire:.
|
|
|
|
|
|
Here is a link to nBASS 0.9.2 library written in C# which wraps BASS library
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|
|
Thx Micheal
Have a look at the examples.
BTW im busy working the WMA dll into it, so you should expect it soon
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
|
U mean like a source on decoding the audio? u can perhaps look at winmm.dll and maybe do something from there... or DirectSound (the VB wrapper) or u can wait for DX9 , which will work alot like nBASS (I actually had a look a few days ago at beta 2's managed functions and its pretty similar).
For most things you will be needing a 3rd party library, just like YOU are using MS .NET as a 3rd party library for applications, etc. If u get what i am saying.
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
Are there any blinking possibility in GDI+?
|
|
|
|
|
|
Thank you.
I know using timer for blinking, but I wanna know that has GDI+ this possibility without using timer?
I don't wanna use timer. I'm looking for another method.
If you remember you could use blinking in MS-DOS without timer.
|
|
|
|