|
Anonymous wrote:
Console.WriteLine(byteIn[i]);
replace above with :
Console.WriteLine("the ascii decimal value is : {0}",(int)byteIn[i]);
Soliant
"Every man dies, not every man really lives"
- Braveheart
|
|
|
|
|
(sorry, but I've had this posted on the IDE forum for a week now, and no luck!)
I created a deployment project and have a shortcut to the EXE to which I specified arguments in the shortcut properties. They don't appear in the shortcut when I install the project. In fact, the shortcut is of some wierd type, and I can't even edit it!
What's going on?
Sorry for posting this here, but I really need this to work!
Where should I post questions for deployment projects anyways?
Marc
|
|
|
|
|
I understand the issue I think...
What you need to do is in the deployment application assign a application as a file to the main folder. (granted it will be there anyways) but by you applying this builded executable it will create a assembly reference. Then from the assembly reference you right click and create shortcut to the application.
Now the shortcut files you create place them in the designated folders.
After the install or deployment is complete, the shortcuts will work. However you will not be able to edit them in any way. But at least they will work.
|
|
|
|
|
New version out. Get at www.dotnetmagic.com
READ MSDN
|
|
|
|
|
Wow, he just pumps them versions out
|
|
|
|
|
This is brilliant.
Is anyone actually using it?
Looks like the client code is pretty complex too.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
It is pretty complex, but read through the HTML docs several hundred times and "play" with various combinations It takes long, but once you get how it works, it sticks and wow it looks nice
READ MSDN
|
|
|
|
|
Thanks, Leppie, will do that.
Out of interest, how's the usable of dockable windows for non-tech. users?
I have a small-scale commercial app. and was initially thinking of using these, but then realised that the users just wouldn't benefit from it.
Thoughts?
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
With the new auto hide property i can allmost create infinite workspace, just like the VS IDE. I have used this in an IRC client i'm busy writing. I used the dockable widows as a replacement for MDI (never got far enough to make it work, dont have to bother now). These have been used in conjuntion with the tabcontrol also in the library.
So death to MDI , hello Dockable windows.
I must however say that the "demos" included, dont really do justice to the power of dockable windows. Nice feature is how u can drag the dockable windows out of the application to the desktop. Only a small problem there that dragged out windows dont seem to retain the parent forms transparency when on the desktop, but are transparent when docked inside. It would be nice to be able to set individual transparency properties or make them inherite from parent form.
Hope this is a bit more informative.
Cheers
READ MSDN
|
|
|
|
|
Good take on the whole MDI vs dockable thing.
Thanks, leppie.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
Very nice!
Two thoughts:
*I need to create a Context which starts as AutoHidden - is this possible?
*When an item is autohidden, the title is not shown - instead there's just a blank square...
Andreas Philipson
|
|
|
|
|
Hello Friends,
Can anyone give me the code example of calling C++ dll functions from C#.
Thanks in advance.
Pranoti
|
|
|
|
|
|
Hi Rupel,
Thank you for quick reply. I've seen the thread suggested by you and has implemented in the same way.
Basically the function contained within the dll is:
IOAPI bool IsCardInserted(void);
And I have exported this function from IoApi.dll.
So I did in this way :
[DllImport("IoApi.dll")]
private static extern bool IsCardInserted();
But I'm getting "System.DllNotFoundException : Unable to load DLL."
I've placed the 'IoApi.dll' in the same folder from where I'm calling it.
Could u please tell me where I'm going wrong.
Thank you.
Pranoti
|
|
|
|
|
The C++ dll has to have extern "C" or the name of the function
is decorated. You can find the name by using depends.exe or
dumpbin -exports ioapi.dll or link -dump -exports ioapi.dll
Or you can use the follwing:
[DllImport("IoApi.dll",EntryPoint="IsCardInserted",
ExactSpelling=false,CallingConvetion=CallingConvention.Cdecl)]
private static extern bool IsCardInserted();
|
|
|
|
|
With <<tlbimp quartz.dll="" out:quartztypelib="">> I get use of the DirectShow Interfaces.
I added the QuartzTypeLib now to the references of my c# project.
<<
QuartzTypeLib.FiltergraphManager graphManager = new QuartzTypeLib.FiltergraphManager();
QuartzTypeLib.IMediaControl mediaControl = (QuartzTypeLib.IMediaControl)graphManager;
mediaControl.RenderFile(filename);
mediaControl.Run();
>>
This works fine.
But why cant I get the IMediaSeeking Interface ?????
It seems not to be in the QuartzTypeLib ?????
With C++ its no problem, but with c# I cant get it
Have anybody got an idea ?
Thanks
PS: Are there tutorials , how to use the DirectShow with c# (the offical way)
|
|
|
|
|
i think we are all eagerly waiting for Managed DirectX 9 wake me when they release it
READ MSDN
|
|
|
|
|
Hi all,
I use property grid to display the properties of my object. But there are some properties should not be appeared depend on their values. Thus it isn't able to hard-code the Browsable attribute as "true" ([Browsable(true)]) or "false" ([Browsable(false)]) on these properties. I consider that I have to make an own attribute which does something likes Browsable attribute. But now I don't have any ideas to implement this class.
If you found out the way to solve this issue, please let me know. Thanks for your helps so much.
|
|
|
|
|
a) I have no idea.
b) Here's a link to some property information, hope it helps a tad.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/vsnetpropbrow.asp
|
|
|
|
|
How would I go about setting up a wall between a program and the internet, I want to intercept a email message before it leaves my computer, inspect it, then forward it to the smtp. It would be nice to do the same with ICQ, AIM, etc... is there a easy way to maybe stand in the way?
Lets say program A establishes a socket with program b (on computer b).
program A then goes to send information to program b. What I want to do is have program c (on the computer program a is running on) get the packet instead, so it can ask me if i really ment to send it etc (stop stupid macro virus).
Is there a easy way to do this, or is it super-crazy-complicated?
|
|
|
|
|
An easy way that comes to my mind is to create a server that listens on port 25 (SMTP)
Configure your mail client to connect to localhost, instead of the actual IP address of the SMTP server. Then each time you want to send an e-mail message it goes through your server first and then if it's ok forwards it to the real SMTP server.
But this only works for connections to one port
Regards,
Venet.
--------
Black holes are where God divided by zero.(Steven Wright)
|
|
|
|
|
I know I can simply use the program like a proxy, I guess I was hopeing to let the email program run without the program running, but be able to turn it on if I wished to.
How do firewalls do it? I bet its really complecated and on the hardware level.
|
|
|
|
|
Is anybody know how to implement a Custom Web Control?
Thanks in advance.
|
|
|
|
|
Hello,
I have been trying to figure this out all week. Does anyone know how to clear out a checkbox on a listview? By listview, I have a developer a program that looks very similar to BackupExec or any other backup software program. When you have selected a particular foler it goes and grabs the files that pertain to that folder. Does any know how I can get this to clear. I want to hook this up to my cancel button. Any help would be appreciated. Thank you.
cAptHiDDeN
|
|
|
|
|
I have tried three method:
public class Factory
{
public Factory()
{
//
// TODO: Add constructor logic here
//
}
public DataInfo CreateDataInfo1( DataInfo di )
{
if( di == null )
{
di = new DataInfo();
di.DataName = "Factory create";
return di;
}
return di;
}
public DataInfo CreateDataInfo2()
{
DataInfo di = new DataInfo();
di.DataName = "Factory create";
return di;
}
public DataInfo CreateDataInfo3()
{
return new DataInfo("Factory create");
}
}
All of them can work!
But I think 2nd and 3rd cannot work because the object will be reclaimed, i'm right?
Annex:
DataInfo class:
public class DataInfo
{
public DataInfo()
{
//
// TODO: Add constructor logic here
//
}
public DataInfo(string name)
{
//
// TODO: Add constructor logic here
//
this.dataName = name;
}
private string dataName;
public string DataName
{
get
{
return this.dataName;
}
set
{
this.dataName = value;
}
}
}
Demo:
public static void Main()
{
DataInfo di = null;
Factory f = new Factory();
di = f.CreateDataInfo1(di);
if( null!= di )
Console.WriteLine( di.DataName );
di = null;
di = f.CreateDataInfo2();
if( null!= di )
Console.WriteLine( di.DataName );
di = null;
di = f.CreateDataInfo3();
if( null!= di )
Console.WriteLine( di.DataName );
}
Thank you for your help!
I'm amumu, and you?
|
|
|
|