|
When the .DLL is in memory the HINSTANCE is your application, not the DLL.
What's the Win32 Native function your trying to call and what are you doing with it?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am new of ASP.Net and facing a problem that whenever I do connection ASP.Net with Sql Server it gives me error
"Login failed for user 'ComputerName\ASPNET'.
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'ComputerName\ASPNET'.
Line 78: thisAdapter.Fill(thisDataSet,"Customers");
I am doing like this "
string myConnectionString = "Initial Catalog=Northwind;Data Source=localhost;Integrated Security=SSPI;server=ComputerName\\MY2000";
thisConnection = new SqlConnection(myConnectionString);
and so on. It is working fine in windows form.
Thanks
|
|
|
|
|
When you're using ASP.NET, you're working as the ASPNET user. That user needs to have the right to log in to SQL Server. The easiest way around is to log in with username/password instead of using Windows authentication.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks for your mail.
I am doing like this
string myConnectionString = "Initial Catalog=MyDB;Data Source=localhost;Integrated Security=SSPI;server=ComputerName\\MY2000;user id=sa; Password=";
My password is blank.
I am not using windows authentication.
It is working without using ASP.NET.
|
|
|
|
|
If I remove this "Integrated Security=SSPI;" from connecting string then It is working fine.
Thanks a lot for your kind help.
|
|
|
|
|
Hi All,
I'm a newbie. I am trying to find out how
to store string data read from a file into
a table or another string.
I keep getting the error, cannot implicitly
assign a string to string?!
Help!
|
|
|
|
|
boomer1946 wrote:
I keep getting the error, cannot implicitly
assign a string to string?!
Perhaps if you posted your code, we could see what's going on ?
There's no reason why you can't build a string from the value of another string. What do you mean by table ? How do you want the string to move into it ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Christain,
I solved the problem. It was my error
using improper syntax.
Thanks for your reply.
Isaac
|
|
|
|
|
Sounds as if you have a simple problem, but cannot be sure as you haven't posyed your code.
Try using the ToString() method, contained within most classes in the .NET Framework
|
|
|
|
|
Yes, it was a simple problem solved by using
the proper syntax. I guess you would call it
a newbie error. I keep building on acquired
knowledge. I'm getting there.
Thanks for your prompt reply.
Isaac
|
|
|
|
|
Hello,
Is there a way to do speech recognition in C# without using MSAGENT?
Regards,
Michael
|
|
|
|
|
|
I have a foreach loop which checks on a ArrayList
I would like to include the Timer object to go through the foreach loop at a 1 second interval.
How can I do this?
Thanks,
BingLin
|
|
|
|
|
1-Add Timer
2-Set Enable Property To true
3-Set Interval Property to 1000
4-Subscribe to Tick event
5-Add the for loop in Tick event handler
MCAD
|
|
|
|
|
i've created the object:
System.Timers.Timer myTimer = new System.Timers.Timer(1000);
I have this:
public void start_click(object sender, System.EventArgs e)
{
//initialise connection to my hardware thru com1
ArrayList frames = this.gCont.GetResponseFrames();
foreach(byte[] frame in frames)
{
//do my stuffs
}
}
how should i use the timer to check through the foreach loop after the creation of connection and arraylist?
|
|
|
|
|
I told you in the previous post
You need to write this code in Timer Tick event handler
Not in Command Click event after you set the properties
private void timer1_Tick(object sender, System.EventArgs e)
{
ArrayList frames = this.gCont.GetResponseFrames();
foreach(byte[] frame in frames)
{
}
}
}
MCAD
|
|
|
|
|
I am assuming you are writing a Windows App.
Basically you click on the timer in the Toolbox panel (in design view) and drag it to the form. Go to timer properties an set Enabled to True and Interval to 1000ms (1s). Double click on the timer icon in design view, This will then switch to your code and it will have added the following:
private void timer1_Tick(object sender, System.EventArgs e)
{
// forech loop and associated code to go here
}
Put your code inside the method and it will run ever second
|
|
|
|
|
I'd like to write a program that has no UI at the current time, but I might like to add one in later. What would be the best type of project to use for this? Should I start a console app, a windows forms app (and just remove the form), should I start a class library app or just an empty one and add as I see fit?
Thanks for the help
- Aaron
|
|
|
|
|
I would start with a Class Library.
www.lovethosetrains.com
|
|
|
|
|
You need to ask your self what is the tasks of your Application and how you will be using your application
As above replay said class library is good start .
You may Create windows service that will run in background
MCAD
|
|
|
|
|
|
Hello All,
I'm looking for recommendations on commercial-grade spell check components, and was hoping you might have some good advice. So far I've seen ComponentOne, RapidSpell, and Aspose, so I was wondering if there was a general preference for one of these three, or perhaps another one that I haven't discovered yet.
Advice, comments & recommendations will be much appreciated.
Thanks in advance!
evan stone | software developer
------------------------------------------
santa rosa, ca, usa
|
|
|
|
|
Hello gurus,
Can one of you give me the regular expression formula in .NET format for the Regex class for detecting if a string is:
- a C variable name
- a path to a file name (ie C:\toto.c)
The goal is to detect if a given string is a C variable and another one is a correct path to a file.
Thanks.
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
I created an application that creates a text file as output. After the file is created I would like to give the user the option of opening the file using their default text editor (usually notepad.exe, but not always). How can I find out and use the Windows default text editor (the one associated with *.txt files) Thanks.
www.lovethosetrains.com
|
|
|
|
|
I'm not sure if Process.Start can do this, but ShellExecute ( via pInvoke ) definately can.
Christian Graus - Microsoft MVP - C++
|
|
|
|