|
hi there!
I want to create a setup for my recently build C# application. I am selecting add new project to the solution, then selecting setup project wizard, selecting create a setup for a windows application, selecting content and primary output only, going through the other next two steps and then I am getting error: Specified cast is not valid. I don't have any idea why this is happening. Can someone please help me? Thanks in advance, Laziale
|
|
|
|
|
try this :
Add Setup Project (not wizard) > Right click on Application Folder > Add > Product Output and select your options > OK
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
when I am attempting to add a setup project, it gives me message from visual studio saying: The operation could not be completed. No such interface supported.
Any idea why I am getting that message? Thanks a lot for helping me, Laziale
|
|
|
|
|
what is your .Net Framework version ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
Are you using an Express Edition of Visual Studio??
|
|
|
|
|
I am using VS 2008 Professional Edition
|
|
|
|
|
Hi, I've got a video capture app running and i want to automate the
process of getting the devices. You see, i have a form with three picture boxes
To receive three feeds from a webcam. Now What I want to do
is automate the app to initialize the feeds automatically without having to select
the video device when the app is loading. Now with just one webcam I can do this just fine, but with more than one the select device dialog of the OS always pop up.
Is there any avicap32.dll callback function to do this?
I'm using avicap32.dll as the video library, can anybody help me?
|
|
|
|
|
Hi all,
I am trying to retrieve the Disk partitions using the following code lines
foreach (ManagementObject mgmObj in gmtObjo.GetRelated("Win32_DiskPartition"))
{
}
This code snippet works well for user having administrative privileges on the machine.However,user having less privileges it does not retrieve any record.
I have searched through net and got the solution where we have to give the permission to the WMI itself using WMITool.However,this solution seems like not feasible as I can not give the permission to client machine.
I am looking for solution using which I would able to fetch the records irrespective of what user privileges are.Either through script or setting the privileges through code(setting through code might again require admin rights...).
Anybody here had faced this problem before or have solution to this??
Help will be appreciated!!!
Thanks in advance
|
|
|
|
|
I'm a student working on a project and I have no idea how to begin.. I want to make a program that works like remote desktop, but instead of being able to access the other user's desktop, you can view their web browser and their activity in it. I want it to work like a messenger program that allows users to like "share" a browser.. I have no idea what to research or where to start... I know I want to write it using c#. Someone told me to try to get it to work through a LAN connection first and then switch it over to work online.. Any advice at all would be really really appreciated..
|
|
|
|
|
Member 4653198 wrote: I'm a student working on a project and I have no idea how to begin..
Research! Look for C# examples that provide some of the same functionality that you want, assess them (do you understand the source, is it reusable etc), and build a bookmark-list.
Next thing you want is to document your research. That will lead to a Definition Study, which in turn leads to Functional Specifications, which in turn lead to Technical Specifications, which may lead to an actual implementation.
Sounds like a lot of documentation, whereas you are looking for code. The documentation is there to prove to yourself whether this is a viable idea, and is a good measurement to decide if you have done 'enough' research. If all looks well and easy on paper, it might just be easy. If it sounds impossible, do some more research or move on to a more viable project-idea.
Hope this helps
I are troll
|
|
|
|
|
how i can get the name of the user which stared a process... similar to
the user name column in the process list in task manager using c#?
|
|
|
|
|
|
Hi,
I have a C++ class that is compiled as a DLL.
now I would like to import it to my C# program.
I know how to import function, but what should I do for importing the class so I can in my C# program create an instance of this class?
Thanks,
|
|
|
|
|
Unless it is managed C++ you cannot import the class. If it is managed C++ then what you have as an Assembly which can be added by adding a reference to it in the project and by putting a using myNamespace at the top of the C# file you want to use the managed C++ class in.
|
|
|
|
|
Thanks, but how do I know if it's managed C++.
It was written with Visual Studio 2005
|
|
|
|
|
hi,
You could try adding a reference to the dll to your c# project. It will fail if it is not a managed assembly or COM component.
Another way would be to try to open the dll with the MSIL disassembler. Again this will fail if there is no CLR header.
Alan.
|
|
|
|
|
Something which just came to mind. Would it be possible to have a function which returns a pointer to an instantiation of the class? So would something like this work?
//C++
extern "C" MyClass *GetInstantiation(void);
//C#
[DllImport("MyFile.dll")]
public static extern IntPtr GetInstantiation();
|
|
|
|
|
yes its possible
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
I usually create a bridge written in C++ managed which creates one managed class and namespace that could be later imported into C#, but underneath this managed C++ class works with that actual and normal C++ class any way it is expected to work with this class, either I compile them together or I import dll and call this class internally.
This bridge serves several good purposes: to test what actually I need in C# from that C++ class. Only those things pass the bridge. Second the bridge is an excellent place to check if parameters are passed correctly and if some of them have to be arranged differently: pointers, arrays... all need different treatment in C# and C++.
If you don't have this bridge, but you directly call a C++ procedure from C# then you have to think about this inside C# code every time you call a specific C++ function. And then if you want to use the same C++ class again, the same problem. With bridge you just import it and everything is tested.
|
|
|
|
|
Hi all,
How can i find out process path?
i am using following code for getting process file name. i need to get the path of that file also. Can any one help me??
Process[] arrProcesses = Process.GetProcesses();
for (int i = 0; i <= arrProcesses.Length - 1; i++)
{
Process objProcess = arrProcesses[i];
if (objProcess.ProcessName == "WINWORD" && !(objProcess.MainWindowHandle == IntPtr.Zero))
{
string FileNameDefault = objProcess.MainWindowTitle;
string[] str1;
str1 = FileNameDefault.Split('-');
// System.IO.Path pt=objProcess.exe
FileNameDefault = str1[0];
}
}
Regards
Lijo
|
|
|
|
|
objProcess.MainModule.FileName
Edit: Suggestion: If you are searching for only Winword processes you can use Process.GetProcessesByName to avoid the loop and checking for the particular process name
modified on Monday, March 2, 2009 9:46 AM
|
|
|
|
|
ABitSmart wrote: avoid the loop
GetProcessesByName() returns an array, just like GetProcesses() does; it probably will be a shorter array, but you may still want to enumerate it.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
modified on Sunday, June 12, 2011 8:58 AM
|
|
|
|
|
My intention was to make the OP aware about GetProcessesByName. Thanks for your comment
(edited my comment)
|
|
|
|