|
Chris Meech wrote:
The IIS installation is completely default, so how would I determine what user account the processes run under and bettery yet what would I use in order to change that? Thanks.
Invoke the task manager (Ctrl-Shift-Esc), View/Select Columns/User Name.
Now, see on the process list what is the user for the aspnet_wp.exe process. On default installations, this is the ASPNET user.
Trying to make bits uncopyable is like trying to make water not wet.
-- Bruce Schneier
By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
|
|
|
|
|
Daniel Turini wrote:
Invoke the task manager (Ctrl-Shift-Esc), View/Select Columns/User Name.
The closest column name is User Objects, which displays a numerical number. The aspnet_wp.exe process is running under the user object of '0'.
I tried your idea about a service to return the PATH environment variable and the string contains the full system path which includes the Oracle directories such as bin.
This is one mother of a confusing problem.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
Chris Meech wrote:
The closest column name is User Objects, which displays a numerical number. The aspnet_wp.exe process is running under the user object of '0'.
Damn! I'm running Windows XP and you're probably on Win2k. It seems Win2k doesn't have this column. Ok, you can change the user that runs the aspnet_wp.exe to any other you may like on C:\WINNT\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config
Search for a tag <processModel.
There, change the userName and password attributes to the user you're using to run the console applications. Don't forget to restart IIS, this is important.
If you're with a default installation, you should have the special value "Machine" as the user name.
If this doesn't work, I quit. I have no more ideas. Format the **** machine and restart from scratch
Trying to make bits uncopyable is like trying to make water not wet.
-- Bruce Schneier
By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
|
|
|
|
|
I modified the machine.config file and restarted IIS. Stil have the same issue, though.
I'm going to remove .NET and IIS and then re-install both but I will install IIS first before I install .NET which is opposite to how they were originally installed.
Thanks for all your help Daniel. I appreciate it very much.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
If you find something that works, let me know: it's always interesting to learn something. If you're facing this problem, I may have it in the future, too.
A guy who works a lot with Oracle here suggested that you may have more than one Oracle client installed on your machine, but I doubt it could cause this kind of problem. If it's the case, he said that the only way around is uninstall all the clients and install only the newer one. As I said, I doubt this is the case...
Trying to make bits uncopyable is like trying to make water not wet.
-- Bruce Schneier
By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
|
|
|
|
|
Well, I uninstalled .NET and IIS, then rebooted and installed IIS and .NET (but only the runtime) and the problem is still there. I'm going to try IIS on another server, so that Oracle and IIS are not running together. But I'm getting very suspicious that the error message is incorrect and not the 'real' reason for the problem. At least if it changed to something else I'd have a clue of what the problem might, but right it's just like blind dart throwing.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
I need the new Windows XP icons for common toolbar operations such as New, Open, Print, Save etc. Are they available somewhere?
|
|
|
|
|
These are actually not icons but a Bitmap image strip in the Bitmap resource type section of several different executables. If you want the ones that you typically see in Windows XP, open the library %windir%\system32\browseui.dll, expand the Bitmap section, and view the various Bitmaps which you can right-click and extract. For the high-res 8 bit, 20x20 pixel buttons, see resource #266, for example.
You can either chop these up into squares using the Office Photo Editor or MS Paint or any other basic graphic package, set the ImageList.TranspartColor property to the color mask (with the bitmaps mentioned above, it's Magenta) and use these at design-time, or read the whole strip into an ImageList using ImageList.Images.AddStrip and embed the bitmap resource in your assembly (in the VS.NET project, select the Bitmap and change the "Build Action" in the property grid to "Embedded Resource"). See Assembly.GetManifestResourceStream for infomration about how to read that embedded resource. One of the Image constructor overloads can do that easily as well.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
|
Sorry, 8-bit / 256-color. Fixed in the previous post.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
126 bit... do you meant 8?
/\ |_ E X E GG
|
|
|
|
|
1) I changed it before you could've seen it, and 2) where you did you get 126-bit? It used t say "256 bit" by mistake, when it should've said 8-bit. Yes, I do very much know the difference but people make mistakes, especially when they're tired.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
yes, i totally agree.
/\ |_ E X E GG
|
|
|
|
|
Hi All,
In my code I am opening a window( new process)using System.Diagnostic.Process.
In this window there is one button to open a modal dialog.
Is there any way I can check whether dialog is open or not using process object.
Thanks in advance,
Tonu
|
|
|
|
|
If this is another .NET application, you could use .NET Remoting to communicate across the two AppDomain hosted by each process. Another way - and if the process is a native application - is to P/Invoke FindWindow to find a Window with the given text (assuming the dialog has a unique caption):
[DllImport("user32.dll", CharSet=CharSet.Auto)]
IntPtr FindWindow(string class, string caption);
...
IntPtr hWnd = FindWindow(null, "My Dialog Caption");
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Hi,
Dose anybody know where can i download "Server 2003 DDK", and i need to write a program to comunicate and transfer files with a remote computer via modem with this protocols (ZMODEM/XMODEM), can you send me some hint or source code links to help me to start it.
thanks in advance.
|
|
|
|
|
|
Our clients using windows platform, please give me windows based hint.
thanx
|
|
|
|
|
This is the C# forum, not the Windows or Windows DDK forum. Please post to the C/C++ forum or the OS forum, or go to http://msdn.microsoft.com[^].
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
|
I am trying to import some functions from an open source library(DLL).
//Here is the function definition in C/C++
PJ* pj_init(int argc, char **argv);
//Here is the PJ struct in a .h file
typedef struct PJconsts {
XY (*fwd)(LP, struct PJconsts *);
LP (*inv)(XY, struct PJconsts *);
void (*spc)(LP, struct PJconsts *, struct FACTORS *);
void (*pfree)(struct PJconsts *);
const char *descr;
paralist *params; /* parameter list */
int over; /* over-range flag */
int geoc; /* geocentric latitude flag */
int is_latlong; /* proj=latlong ... not really a projection at all */
int is_geocent; /* proj=geocent ... not really a projection at all */
double
a, /* major axis or radius if es==0 */
e, /* eccentricity */
es, /* e ^ 2 */
ra, /* 1/A */
one_es, /* 1 - e^2 */
rone_es, /* 1/one_es */
lam0, phi0, /* central longitude, latitude */
x0, y0, /* easting and northing */
k0, /* general scaling factor */
to_meter, fr_meter; /* cartesian scaling */
int datum_type; /* PJD_UNKNOWN/3PARAM/7PARAM/GRIDSHIFT/WGS84 */
double datum_params[7];
double from_greenwich; /* prime meridian offset (in radians) */
#ifdef PROJ_PARMS__
PROJ_PARMS__
#endif /* end of optional extensions */
} PJ;
I understand that I need to use DLLImport to import the function and [ StructLayout( LayoutKind.Sequential )] to create a clss representing the struct, but I'm clueless on the first 4 lines in the struct above:
XY (*fwd)(LP, struct PJconsts *);
LP (*inv)(XY, struct PJconsts *);
void (*spc)(LP, struct PJconsts *, struct FACTORS *);
void (*pfree)(struct PJconsts *);
XY and LP are simple structs
typedef struct { double x, y; } XY;
typedef struct { double lam, phi; } LP;
Any ideas?
Thanks,
sam
|
|
|
|
|
The XY and LP structs are easy:
[StructLayout(LayoutKind.Sequential)]
public struct XY
{
public double x;
public double y;
}
[StructLayout(LayoutKind.Sequential)]
public struct LP
{
public double lam;
public double phi;
} If you look at the PJconsts struct, though, it's actually being used as a class (possible in C++). You should instead define this as a class, keeping in mind that anything declared as a class is a reference Type already, so you don't need a pointer to it. If you need to pass a reference to a value type (like struct s, for example), use either the out or ref keyword, depending on whether or not the param is defined as [out] or [in,out] respectively.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Yeah XY and LP are easy, my problem is the PJconsts struct..... which is really the PJ struct, I think the PJconsts is some type of C label, while PJ is the actual name. This thread http://forums.devshed.com/archive/42/2003/9/1/80923 talks a bit about it...
and what is the deal with the first 4 lines of the struct.....
|
|
|
|
|
They're method declarations, which is why I was saying that this could be better suited for a class. This was a way in C to declare class-like entities.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
XY (*fwd)(LP, struct PJconsts *);
LP (*inv)(XY, struct PJconsts *);
void (*spc)(LP, struct PJconsts *, struct FACTORS *);
void (*pfree)(struct PJconsts *);
Obviously, we dealing with function pointers here, aka CALLBACK. You can safely use static delegate instances for this. I'm not sure about returning those structs, marshalling could give you either a pointer or a value, you will just have to try.
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|