|
hi
i'm having troubles debugging an BHO with IE7 and VS 2008
i'm using the BHO from http://www.codeproject.com/KB/cs/Attach_BHO_with_C_.aspx[^]
the application is working fine for me
I searched to how to debug BHO. this is what I found:
"Set your IE home page set to about:blank . That way you can start up the browser as fast as possible and go where you need to. So, start up the first IE window. Then, from VS.NET use the Attach to Process item in the Debug menu to attach to iexplore.exe. Set breakpoints in your BHO. To break within the constructor, just open a second IE window."
I did that but it didnt work for me
it's just ignoring my breakpoints
do you know otherway to debug?
or maybe I'm missing something?
thanks
|
|
|
|
|
Hi,
i wanna do a macro program for a game.But there is a problem with sending keys to only game application (game window).I am using keybd_event API for sending keys to game window.But i only want to send keys to game window not to explorer or any opened window while my macro program running.When i changed window its still sending keys.I tried to use Interaction.App with giving Visual Basic.dll referance.But Interaction.App is only Focus the game window.I couldnt find anything about my problem.Can anyone help me ?
Thanx
modified on Friday, January 2, 2009 8:18 AM
|
|
|
|
|
|
If there's an article on CP, you should ask the author your questions. And if you use a free library, don't expect it to work as completely as a commercial one.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks for your suggestion,
If u have any sol'n, pls... Let me know
Thanks
|
|
|
|
|
when we say the size os type 'bool' is 1 byte?
what does it mean?thanks
|
|
|
|
|
It means the bool variable takes memory of 1 byte.You should take some basic book of fundamentals and c#.
Cheers!!
Brij
|
|
|
|
|
How many nibbles is that, nowadays?
I are troll
|
|
|
|
|
A 1 (lick), a 2 (lick), a 3 (lick) >CRUNCH<, 3.
|
|
|
|
|
i guess that u mean 1 bit not 1 byte
that mean the boll tybe can contain two values 2 ^ 1
true or false
|
|
|
|
|
Hi,
I have a application which i want to run and operated programmatically using C#. Using the System.Diagnostics.Process.Start() i can run the .exe. But i wish to operate or click on the various buttons on the UI of the program.
For instance i can run Calculator using System.Diagnostics.Process.Start(C:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Calculator). Now the Calculator application is up and running how can i operate on it programmatically. Is it possible to press the various buttons of the Calculator like "+", "-", "1" , "2" etc, programmatically ??
Thanks in advance
|
|
|
|
|
You can send the appropriate messages to the Calculator application.
« Superman »
|
|
|
|
|
And how can i do that ??
Can i have a code snnipet or link to such code depicting the same....
|
|
|
|
|
|
How to create many datatable dyanamically in c#.net. Thanks in Advance.
|
|
|
|
|
Can you be more specific to your Qs/requirement?
although at runtime time you can create datatable using DataTable class.Use google/msdn
Cheers!!
Brij
|
|
|
|
|
Brij wrote:
Brij wrote: I want to create datatabke array, where the array count will be statis and be declared in configuration. like .
int iCount=4;
for(x=1;x<=icount;x++)
{
// Here datatable object will be created dynamicall. like dt1,dt2.dt3....
DataTable dt+x =new DataTable();
// I want to add columns to the particular datatable.
dt+x.columns.add("NO");
dt+x.columns.add("NAME
..
}
Thanks.
|
|
|
|
|
Why don't you use List?Use list of Datatable.Here you don't need to worry about the size.Create datatable at runtime and add to the list.Whenever you need you iterate the list and use them accordingly.
Cheers!!
Brij
|
|
|
|
|
That's OK.But if I don't put the value in configuration then how would i know the count of datatables ???
|
|
|
|
|
You can get the count from the list itself.You can store it some session variable (if user specific) or application varaiable(if application specific) for any other use.
One thing How are you getting the count of the table.Is it coming at runtime?Can you be more specific to requirement?
Cheers!!
Brij
|
|
|
|
|
A windows service is supposed to launch an application, passing some arguments to the executable. I am trying to do this using CreateProcessWithLogonW(string principal,
string authority,
string password,
LogonFlags logonFlags,
string appName,
string cmdLine,
CreationFlags creationFlags,
IntPtr environmentBlock,
string currentDirectory,
ref StartupInfo startupInfo,
out ProcessInfo processInfo) API function.
I set the parameter "cmdLine" for passing string to the executable. The following code doesn't get me anything ...
static void Main(string[] args)
{
// that doesn't give any value
string acrossprocessvalue = args[0];
//neither the following lines
string test = Process.GetCurrentProcess().StartInfo.Arguments;
}
any help ...
fulbright
|
|
|
|
|
Process.Start will do it. Process class provides options to supply arguments too.
|
|
|
|
|
Thanks for the answer ... I started with Process.Start() actually but that wasn't fulfilling the requirements. e.g, The windows service is running under the "Network Service" user, a less privileged user,that wont be having the rights to display application on desktop, etc. So for such security tunnings I had to use CreateProcessWithLogonW() API function.
Madni
|
|
|
|
|
"cmdLine" argument that i'm trying to pass to CreateProcessWithLogonW() is a string basically but does it have some specific format ? I'm simple passing the value as
cmdLine = "testargument";
Is it OK ????
fulbright
|
|
|
|
|
Pass whatever you want, as long as the spawned app understands it.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|