|
|
No one cannot help u until u post the problem
Chatura Dilan
|
|
|
|
|
Don't be so impatient. This is a forum, not a chat.
---
single minded; short sighted; long gone;
|
|
|
|
|
P_Elza wrote: plz dhelp me for the below proble.
Please check the typos in just a one-liner featuring seven words. Two typos per seven words is just far less than the acceptable English standards.
P_Elza wrote: dhelp
Did you mean dumped ?
You are already dumped down with a good number of negative votes.
P_Elza wrote: below proble
If you had posted an HTML snippet, ensure that 'Ignore HTML tags in the message (good for code snippets) ' is selected.
I would first suggest you to read the Forum Posting Guidelines here before posting a message (particularly with respect to the subject line): http://www.codeproject.com/scrapbook/ForumGuidelines.asp[^]
|
|
|
|
|
Hello experts,
I make a DLL named maths.DLL. In that I include all the possible
functions related to maths.
But what I see other user can add this DLL as a reference and use my functions...
I want to make My DLL password protected so no one can import it and
use it.
How I can do that...?
Please help...
Regards
Pankaj Joshi
|
|
|
|
|
Why don't you use obfuscater.Vs 2005 comes with one . you can use it to obfuscate your code so no one can use your class library
-- modified at 1:13 Monday 17th September, 2007
Man having 1 bit brain with parity error
|
|
|
|
|
Thx for reply sir,
What i see the obfuscater is the third party component and we have to buy it.
I want to make security using .net. Is their any way to use .Net Securities ?
So I can make my DLL secure i.e no one use it or you can say password protected DLL
Regards
Pankaj Joshi
|
|
|
|
|
you can use LicFileLicenseProvider Class to code your custom tool.You can find many samples arround.
Man having 1 bit brain with parity error
|
|
|
|
|
Thx Sir,
Can you provide me sample code for use this..?
Or I have to explore it my self...?
Regards
Pankaj Joshi
|
|
|
|
|
I want to search a file from server and want to copy it to the local disk.
how it is done? This is working if the file is in my hard disk itself.But not when it comes to server. If i map the server i can search.like y:\\serverfolde\\folder am tring to make an exe. different people will map to different drive. so i cant give like that.should give like @\\server\\serverfolde\\folder\\ but it is not working.
My code is
<br />
searchfolder="y:\\Template\\else";<br />
destination ="D:\\Princy\\My Documents\\project\\";<br />
string source=searchfolder+"\\"+"mod501_"+filetosearch+".3d";<br />
string target=destination+"mod501-"+filetosearch+".3d";<br />
string[] files = Directory.GetFiles(searchfolder, "mod501_"+filetosearch+".3d");<br />
if(files.Length==1)<br />
{<br />
foreach (string dir in files) <br />
{<br />
lblcnt.Text="Selected File: "+ dir;<br />
string[] search = Directory.GetFiles(destination,"mod501-"+filetosearch+".3d");<br />
if(search.Length>0)<br />
{<br />
lblcnt.Visible=true;<br />
lblcnt.Text="File already exist";<br />
}<br />
else<br />
{<br />
File.Copy(source,target);<br />
lblcnt.Visible=true;<br />
lblcnt.Text="File copied";<br />
}<br />
}<br />
what to give insted of
searchfolder="y:\\Template\\else";
If am using
searchfolder="@books\\template\\Template\\else";
am geting error:
System.IO.DirectoryNotFoundException:Could not find a part of the "@books\template\Template\els".
Otherwise its working perfectly.
-- modified at 4:45 Monday 17th September, 2007
|
|
|
|
|
try
searchfolder = @"\\server\folder\sub-folder"
|
|
|
|
|
Hello
I am using standard procedure to consume web services( add web reference and so ...)
All the mapping is generated for me. I need to include "accept-encoding:gzip" in the http header of the request, so web server will know to compress the response.
I could not find how to do that.
PLEASE HELP!!!
MishaKogan
|
|
|
|
|
Hi all,
I'm new to .NET .I have A function which declared in VC++ like
LONG GetData(VARIANT *varData)
This function returns the data of type double through this varData variable.
How could i call this function from C#?
Thanks in advance?
|
|
|
|
|
Hi,
Its better you create a DLL of your VC ++ class and call that DLL from your c# application using DLL Import atribute. and use that function . you will get lots of exaples of that in code project , just try to search it.
Regards,
Regards ,
Nishu
|
|
|
|
|
To call a C++ function from C#, you need to create a wrapper class in C# which uses C++ dll methods. Then call the C# method. You need to use DllImport
|
|
|
|
|
Is there is any way to generate the events form string values
such as
I have string s = "Paint"
is there any code that if the control have paint event it is generated and a particular method is called
Thanks and Regards
Amar Chaudhary
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
Try using reflection:
Reflect the Paint event on the object and invoke it.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
use this type of approach
In the method
<br />
void Method()<br />
{<br />
PaintTemp_Paint+=new new System.Windows.Forms.PaintEventHandler(this.PaintTemp_Paint);<br />
}<br />
Ravi
|
|
|
|
|
Can anyopne please tell me whyn this isn't reading data from the database? I'm trying to save multiple entries to the database based on checkedlist box selections. I really need my code proofread. Can someone please tell me in code example what I'm doing wrong? Malcolm is hopefully going to help me but since I'm desperate I am trying to get the quickest help possible and not sure if he'll get back to me in time.I've been trying this for a week by the way.
It's for ado.net.
<br />
SqlConnection adoConn = new SqlConnection("server = ADMMSAS7;database=Dev_RST;Trusted_Connection=yes");<br />
adoConn.Open();<br />
<br />
<br />
string sql = "select ProgLanguagesDatabase from TechnicalSkills";<br />
SqlCommand adoCmd = new SqlCommand(sql, adoConn);<br />
SqlDataReader adoDR = adoCmd.ExecuteReader();<br />
<br />
string TechnicalSkills = (string)adoDR["ProgLanguagesDatabase"];<br />
int TechnicalSkillsID = (int)adoDR["TechnicalSkillsID"];<br />
<br />
<br />
if (adoDR.HasRows)<br />
{<br />
while (adoDR.Read())<br />
{<br />
<br />
if (techSkillsCheckListBox2.CheckedItems.Count != 0)<br />
{<br />
<br />
for (int x = 0; x <= techSkillsCheckListBox2.CheckedItems.Count - 1; x++)<br />
{<br />
if (techSkillsCheckListBox2.CheckedItems[x].Equals(TechnicalSkills))<br />
{<br />
<br />
sql = "Insert into EmpSkills(EmployeeID,TechnicalSkillsID) values ('" + this.EmployeeID + "','" + techSkillsCheckListBox2.CheckedItems.ToString() + "')";<br />
Sianny aka Sharny
|
|
|
|
|
falles01 wrote: sql = "Insert into EmpSkills(EmployeeID,TechnicalSkillsID) values ('" + this.EmployeeID + "','" + techSkillsCheckListBox2.CheckedItems.ToString() + "')";
At first glance, this is vulnerable to a SQL Injection attack (not why it isn't reading from the database, though).
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
So do you know how to insert multiple values from a checkedlistbox selection?
|
|
|
|
|
What I meant by my post was that the way you are concatenating strings together into a sql statement is very bad practice. Read this very useful article http://www.codeproject.com/cs/database/SqlInjectionAttacks.asp[^] by Colin Mackay.
As far as inserting multiple values from a checklistbox selection, techSkillsCheckListBox2.CheckedItems.ToString() is suspect. Isn't there supposed to be an Items collection that you can pull the actual data value from? I am not a 100% but look for something like that.
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
Hey,
I am using a BinaryReader to read some Int16 values from a file. These values, however, are stored in big-endian format. I am sure there is a way to fix this issue programmatically, I'm just not sure how to go about doing it. So, how can I read a big-endian value from a file and get it to display correctly?
|
|
|
|
|
Just write a function that takes the Int16 values and converts them from big-endian to little-endian.
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
Ok, thank you. I was just wondering that perhaps there was a function already built into MS C# that would do it for me.
|
|
|
|