|
Does it really need to be in the GAC? If not, don't put it there, just do this to the assembely in the directory where your application lives.
Of course, it wouldn't take a rocket scientist to capture the dll while the app is actually running, then copy it elsewhere for later use. Or even get it accidentally if the app quit under abnormal circumstances (eg. was killed with TerminateProcess()).
Matt Gerrans
|
|
|
|
|
the problem is that you cannot copy assemblies from the GAC because it is not a phisical directory! go to %windir%\assembly\GAC and try to copy a file from there. Use the command prompt also.
|
|
|
|
|
Wanna bet? You just need to know where to look.
Anyway I don't think any directory is a physical directory. Nothing in software is "physical." Of course, there are physical magnetic dipoles that are pointing in one direction or another, or transistors that have in particular electrical states and those are physical properties, but the concepts of files and directories are more metaphorical than physical.
Matt Gerrans
|
|
|
|
|
I tried to go to %windir%\assembly with windows explorer, and it doesn't allow you to copy assemblies.
I tried to go to the same dir with the command prompt, and the 'dir' command lists some assemblies (without extension!), but the 'copy' command doesn't work.
So...
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
MrEyes wrote:
The company I work for has found out that other companies are using the public interface of this DLL to perform processing on their own data.
And your company doesn't have any lawyers to stop this? If you already know it why not bring those other companies to court?
|
|
|
|
|
And your company doesn't have any lawyers to stop this? If you already know it why not bring those other companies to court?
Without get into the meat of the issue, the problem is highly political as we have "relationships" with these third parties. I have been directed from above to find a solution to the problem without going down the lawyer route.
post.mode = postmodes.signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
|
|
|
|
|
Look into the "Licensing Components and Controls" topic of the .NET Framework Developer's Guide.
Also checkout third-party licensing components, such as Aspose.License for example. I think it is free (although with no support).
http://www.aspose.com/Products/Aspose.License/[^]
|
|
|
|
|
Walk up the stack trace and have a look at the assemblies. If you do not find a call from your (signed) main executable, then throw an exception. Obviously won't stop anyone from decompiling, remove your check, then compiling again but it's a start.
|
|
|
|
|
I wrote a program to keep sending a string by using the "SendKeys.SendWait()" method. I also wrote another program with only a textbox.
These two program were running simultaneously. How can the textbox accept only real key-pressed string but not SendKeys string?
|
|
|
|
|
|
How do I loginto a remote machine from an ASPX page..
I have a few server IPs I need to loginto. The login information needs to be extracted from an XML file..
It should be as good as using MSTSC.EXE.. Depending on the button being clicked, the remote desktop Connection IP address should change..Additionally the logon credentials need to be extracted form an XML File..
|
|
|
|
|
Hi...
I have added a TabControl with a few tab pages.
In the properties menu I have sat the Alignment to Left.
My problem is when i debug my app there is no text on tab pages!
In the output folder I also have a .manifest file, when i delete the .manifest file there is text on the tab pages.
Can anyone tell me why?
Thanks QzRz
|
|
|
|
|
Hi
I wrote a simple program that should find a specific window and hide it.
Somehow the window is actually being close (Its process is killed) and the weirdest thing is that the taskbar is also hides.
Here is my code:
<br />
public const int SW_HIDE = 0; <br />
<br />
[DllImport("user32.dll")] <br />
public static extern int ShowWindow(IntPtr hwnd,int nCmdShow); <br />
<br />
private void button1_Click(object sender, System.EventArgs e) { <br />
string title=textBox1.Text;
Process[] plist =Process.GetProcesses(); <br />
foreach(Process p in plist){ <br />
if(title.IndexOf(p.MainWindowTitle)>=0){ <br />
ShowWindowAsync(p.MainWindowHandle,SW_HIDE); <br />
}<br />
} <br />
} <br />
Can you see the problem? what is it?
or how can i hide a window without closing it?
Thank a lot
Mamtz
|
|
|
|
|
You can try this:
[Flags]
public enum SWP
{
SWP_ASYNCWINDOWPOS = 0x4000,
SWP_DEFERERASE = 0x2000,
SWP_DRAWFRAME = 0x20,
SWP_FRAMECHANGED = 0x20,
SWP_HIDEWINDOW = 0x80,
SWP_NOACTIVATE = 0x10,
SWP_NOCOPYBITS = 0x100,
SWP_NOMOVE = 2,
SWP_NOOWNERZORDER = 0x200,
SWP_NOREDRAW = 8,
SWP_NOREPOSITION = 0x200,
SWP_NOSENDCHANGING = 0x400,
SWP_NOSIZE = 1,
SWP_NOZORDER = 4,
SWP_REDRAWONLY = 0x717,
SWP_SHOWWINDOW = 0x40
}
[DllImport("User32.dll", CharSet=CharSet.Auto)]
public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags);
private static SWP hideFlags = SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOREDRAW | SWP_HIDEWINDOW
SetWindowPos(p.MainWindowHandle, IntPtr.Zero, 0, 0, 0, 0, hideFlags); More info on MSDN[^].
Hope this works!
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
Hello All,
Can we dynamically generate the reports, say, like an user selecting the required fields across DB tables (through a front-end), specifying the criteria -us building the SQL query- and fetching the result from the DB.
Any help on this would be appreciated.
Thanks
|
|
|
|
|
Don't double post. If you really really think that you have to draw attention to your question in two separate message boards, keep the question in one and post a link to it in the other.
---
b { font-weight: normal; }
|
|
|
|
|
Hello All,
I dont know how to add buttons to DataGridColumn.Can u plz tell me??
Thanks
Amruta
|
|
|
|
|
Hello everybody!
I met a problem when I tried to insert a new record or update a record when it contains a date field. Which says the insert into syntax is not correct. I tried to insert a date format string using
DataTable atable = ds.Tables["Invoice"];
atable["date"] = Convert.ToDateTime(DateTime.Today.ToShortString);
atable["date"] = DateTime.Today.ToShortString();
or any kind of ways I can think about. But none of them works. Does anybody know a way to solve this problem please.
And also does anybody has any good idea to display information between two date please?
Asura
|
|
|
|
|
Why do you convert the date to a string at all?
atable["date"] = DateTime.Today;
---
b { font-weight: normal; }
|
|
|
|
|
I tried this way actually, but it gives the same error message. "Insert Into syntax error"
There is no problem to display date if I write some date in access. But it just can't write date back into access.
Asura
|
|
|
|
|
Have you specified the field as date in the database?
---
b { font-weight: normal; }
|
|
|
|
|
Yes, I defined the field as date/time in access. As long as I define a field as date, the insert and update can't work. If I delete the field, everything is OK.
Asura
|
|
|
|
|
How did you define the UpdateCommand for the OleDbDataAdapter? It's is not created by default unless you wrap the OleDbDataAdapter in an OleDbCommandBuilder, or create the UpdateCommand yourself.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
The problem is (I have seen it so many times...) that you cannot use some field names in tables. I'm pretty sure 'date' is beteen them...
other names are 'username', 'password'...
|
|
|
|
|
Please reply to the original poster.
---
b { font-weight: normal; }
|
|
|
|