|
hi all
i have created a dll ,, and there is a function in this dll name (somehitng)
i have put this dll in an other prject,s root and every thing goes ok after creating a reference to this dll ..But problem is that when i debug this project the controll moves to that function (something) in that dll and all the code is seen clearly and i dont want that ,,,
purpose is that i dont want any other can see my code in that dll,, how to do that please tell me
thanks in advance
hello
|
|
|
|
|
Try using doing a release build for the DLL project you created and use that DLL in the Release folder of ur DLL project in other projects this will avoid ur issue.
|
|
|
|
|
Problem ois still
i have created a release built for my dll project and in my other oroject(test) i copied dll from release folder and put it in the debug folder of my other project (test)
but during debuggin when i press f11 the controll moves to my class in that dll and i can see my code clearly it is so funny , why ?
where am i wrong
please help me
hello
|
|
|
|
|
Hi,
Just to make sure, Have you added the class library project in the project which you are coding on right now ? If yes please remove that project (Dll project from new one)
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
no its not there
but when i delete this dll project from my PC than the problem is resolved
but i dont think i am right ,, i must be wrong some where can u plz tell me
thanks in advace
hello
|
|
|
|
|
hi can any body tellme what is the
difference between (int) data type and Int32 data type ,, what is the usage for both types
Uint16 Ctime = 20;
Uint16 b =Convert.ToUInt16(Ctime - 1);
Uint16 b =(Uint16)Ctime - 1;// this code does not work but why what is the difference between these two approaches
hello
|
|
|
|
|
Normally int is equal to Int32, but from what I have read, int is actually an Int64 when running an x64 edition of Windows. You should be carefull when developing applications that both need to run on x64 as well as x86.
WM.
What about weapons of mass-construction?
|
|
|
|
|
WillemM wrote: but from what I have read, int is actually an Int64 when running an x64 edition of Windows
Where have you read that?
According to the documentation[^] the int data type is an alias for the System.Int32 data type. A 32 bit integer should be a 32 bit integer even in x64, right?
---
b { font-weight: normal; }
|
|
|
|
|
I read it on some forum, but appearantly that person was wrong. Thanks for the update.
WM.
What about weapons of mass-construction?
|
|
|
|
|
ghumman63 wrote: difference between (int) data type and Int32 data type ,, what is the usage for both types
There is no difference at all. The int data type is just an alias for the System.Int32 data type.
ghumman63 wrote: Uint16 Ctime = 20;
Uint16 b =Convert.ToUInt16(Ctime - 1);
Uint16 b =(Uint16)Ctime - 1;// this code does not work but why what is the difference between these two approaches
The difference is that on the third line you are only casting the value of Ctime, the 1 value is still an int. If you want to cast the value after the calculation, you have to put parentheses around it:
Uint16 b =(Uint16)(Ctime - 1);
---
b { font-weight: normal; }
|
|
|
|
|
|
hi guys can u tell me what is the most strongest and secure way that if
i want my file cannot be accessed by any one on other system on the sam LAN where my PC resides ,,, means i dont want my files to be copied ,,and seen, although i have not shared even a single file on the network ,, but i dont think it is the most secure way
and second thing i want to know if my system is shut down and no one knows my winxp passowrd so if my system is secure against any smart and clever attempt to see and copy my system files ??????(is there any way to detect my system password and copy my confidential files)
Thanks in Advance
hello
|
|
|
|
|
There are ways to get around the lack of network shares and login passwords
|
|
|
|
|
Hallo,
you also have to set the win access rights to no access....
Do you realy want nobody to copy them, or only than noone can make sense from them. For the second encryption would be the best way. Either use the windows encryption(very easy) or even safer, use an other tool which uses a Key from a USB-stick or even an external Decryptionchip (never making the key publik). By this you can garantee (depending on the way you go) that even if anyone can copy the files, he cannot make sense of them. It would be the same if he had copied a big random number.
cu
|
|
|
|
|
I am pretty new at this but I have managed to create a pretty cool looking Custom Control for the Windows Mobile 5 devices.
Its a simple button but has a nice faded background and allows images and text. The control has all the usual events and it all works great when running however in design time I cannot work out how to catch the enabled event.
I can create a simple form and enable and disable my control while running and it greys out the image etc but I would really like to have this happen in the design environment.
How can I do this?
Your help will be greatly appreciated.
Steve
|
|
|
|
|
I am not sure if the design-time features are the same with regular Windows Applications and Windows Mobile Applications but one of my articles may help you:
Targeting Design-Time Event of User Controls
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hey Guys,
I am using .NET Framework 1.1 in my application. But when i tested the application on a machine which did not had the framework installed, it asked me to install it from a MS link which i have not programmed. Is that something which Microsft does automatically?? I know it might be a silly questions, but i am really curious to know
Thanks !!
Banku
|
|
|
|
|
Applications developed for/in .Net requires .Net Framework installed on the target machine to execute the .Net Applications.
|
|
|
|
|
It depends on what you were testing. Setups creating in Visual Studio contain code that checks for the installed version of .NET and prompt for the download if it isn't installed. Your app doesn't do that on its own
WM.
What about weapons of mass-construction?
|
|
|
|
|
hi,
as we clear the history of google search is there any settings available to clear the find combobox list in Microsoft Development Environment(Design) - Start Page???
zari
|
|
|
|
|
To delete the find combobox values in Visual Studio you need to edit the Registry:
Go to:
HKEY_Current_User\Software\Microsoft\Visual Studio\7.1 or 8.0\Find
Delte all registry values that begin with the word find.
Examples:
Find yadda
Find 0 hello
Find 1 codeproject
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hi !
I have created a form designer from different examples I found here or elsewhere.
But I have a trouble when I try to edit a DataGridView:
"Edit columns" and "Add columns" automatically appear in my PropertyGrid, and I can click to show the "classic" VS Datagridview column editor.
The trouble is that when I "Add" a column, no type is available, so when I click "Add", a exception is launched...
As this column editor is launched "automatically", how can I extend it to add types in the Add window ?
Looking forward to hearing from someone
Best regards
junxian
|
|
|
|
|
The easiest way I know to work with a DataGridView is to create a DataTable… create its columns and then connect the DataTable to the DataGridView as its data source..
I created an empty form and throwed a DataGridView on it with the name "gridNumbers"
here is the code:
<br />
<br />
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
<br />
namespace DataGridExample<br />
{<br />
public partial class frmMain : Form<br />
{<br />
DataTable oTable;<br />
<br />
public frmMain()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
private void Form1_Load(object sender, EventArgs e)<br />
{<br />
oTable = new DataTable();<br />
oTable.Columns.Add("Number", typeof(int));
oTable.Columns.Add("Text");
<br />
gridNumbers.DataSource = oTable;
<br />
AddRow(1, "One");<br />
AddRow(2, "Two");<br />
AddRow(3, "Three");<br />
AddRow(4, "Four");<br />
<br />
}<br />
<br />
protected void AddRow(int num, string text)<br />
{<br />
DataRow oRow = oTable.NewRow();
oRow["Number"] = num;<br />
oRow["Text"] = text;<br />
oTable.Rows.Add(oRow);<br />
}<br />
<br />
}<br />
}<br />
<br />
I tried to make this example as clear as possible... hope you got your answer
|
|
|
|
|
Hi all,
I am developing a windows service application to process events and I want it to maintain a count of the number of events processed correctly, and the number that have failed processing. This is pretty straightforward, just updating variables (I'm not concerned about keeping a history, just how many have processed/failed since the service was last started).
I also want to write a ServiceController application to manage the service. I can get it to start/stop etc the service, but I cannot for the life of me figure out how to get the service to tell me what the current counter values are. I have looked into Custom Commands and could implement these but how do I get the service to return a value? I just want to be able to click a button in my service controller and have the service tell me how many events it has processed. This sounds easy, but i'm not sure if I can to do it. I don't want to implement remoting (way too heavy for something like this IMHO).
Any advice most welcome.
Owen West
HNE Health
owen.west@hnehealth.nsw.gov.au
|
|
|
|
|
One way is to send your event count to the Event Log. Another way is to send the data to the MSMQ.
-- modified at 5:40 Friday 17th November, 2006
|
|
|
|