How does one get the application name of a C# program at runtime
Hi,
How do I get the application name during run time. In C or C++ I use
argv[0], but in C# args[0] contains the first argument to the program
not the program name. So, what is the magic to getting this?
Thanks,
Andy Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232214
[Offtopic - Maybe] MSDN Documentation
Can someone please point me to some articles explaining how to convert the
code comment xml files into MSDN documentation? I've made some
modifications to Enterprise Library and would like to create the msdn
documentation for my changes (which have been documented using code comments
following the same patterns that the P&P guys use)...since these assemblies
will be used by my co-workers, the MSDN docs should be updated to reflect my
changes as well....
Thanks,
Mythran Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232208
Get Event Name
I have the following function for firing various events. Is there a
way to get the name of the event I am firing using only the info
already provided to the function? I don=92t want to add another
parameter to the function and I don=92t want to change the EventArgs
parameter to something derived from EventArgs.
static private void FireEventProcessing(object source, Delegate
handler, EventArgs e)
{
if (handler !=3D null)
{
handler.DynamicInvoke(source, e);
}
}
Thanks,
Mike Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232206
invalidate textbox
Hello,
I have a button which put a value in a variable when a click happened.
This variable is part of data binding, and is connected to a textbox.
In the method which receive the click button I finished by calling the
invalidate method of the textbox.
But nothing happens (I mean, the textbox isnt update) until I click on
another radio button somewhere in the UI.
What should I do to update the textbox immediately?
I also tried with refresh and update method.
Regards,
--
William Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232205
String representation of a property
Can anyone help??
How can i get the string representation of a property?
For example if I have a Client object that has a FirstName property,
how in code can I get "FirstName" from Client.FirstName ?
Chris Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232197
Word File problem
When I open a Word file, it does not completely open so I click on file or
tools etc and the document turns white or blank.
--
Down Under Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232195
Which data control gives me this view?
I want to get a logged in user's properties into a vertical template
=============================================
FieldName Label | FieldValueToEdit Label
=============================================
LinkedFieldToEdit | ValueToEdit
... | ...
... | ...
=============================================
Which data control in the framework should be used and if more than one
choice is available using templates a quick comment on why please... Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232190
Which language should be used?
Hello,
I am interested in developing an application using the .NET
technology. I not quite sure what language - c++, vb, asp, etc. to
develop the application in. It will have a nice gui that the user
will interact it. The next version of the application will be web
base where the application can be access via the web from anywhere.
Any suggestions on what language would be best? Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232187
SqlClientPermission exception
I have a vb.net app that runs as a console app. Wen I try to execute
this exe from another (vb6) exe, I get a SqlClientPermission
exception. I've been reading about .net security (something I am aware
of but know nothing about) and am getting totally lost. Is there a
simple way around this, or am I destined to learn all about .net
security?
FWIW, the vb6 app reside on a network drive. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232179
OBEX Over Wired TCP/IP?
I have a Wifi ad-hoc network. I would like to communicate with another
device over WiFi using OBEX to send items. Failing that, I would like
to use the WiFi connection to emulate a serial port with another
device for simlpe data transfer.
Is that possible?
Thanks. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232178
Thread-safety: Change property of items in arraylist versus removing
I have an arraylist, OrderList, in which each item in the arraylist is
an Order object.
At the beginning of my program, I read from an input file to create
the OrderList. Then I launch several threads for different operations
related to OrderList.
Thread #1: "OnOrderFilled" method is REMOVING an order from the
arraylist once the order is filled.
Thread #1: "OnOrderCancelled" method is changing the property of an
order once the order is cancelled.
Thread #2: "ActivateOrder" method loops through each order in
OrderList and sends out the orders.
Here's the problem - When "ActivatOrder" sends out orders (please note
that it takes time to send out orders), some orders may be filled at
the same time; so the "OnOrderFilled" method on Thread #1 is fired
which REMOVES the orders from OrderList that are filled, and this
affects "ActivateOrder" method that loops through OrderList. I get
"Collection was modified" exception.
To get this fixed, I was thinking of instead of REMOVING order from
OrderList that causes "Collection was modified" error, I should add a
property to each Order called "IsFilled" so that I CHANGE "IsFilled"
to true when an order is filled.
My question is -- Will changing the property in "OnOrderFilled" method
cause any thread-safety issue for "ActivateOrder" method? Thanks! Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232176
Obtain CA Certificate?
For some reason my application now requires that I "Sign the ClickOnce
manifests". I don't know that it ever has before. I clicked the "Create Test
Certificate" and after a reinstall everything is hunky dorey.
Now I am trying to obtain a certificate that is "trusted" and I don't know
how to go about doing that. I understand that my temporary certificate will
expire in a year, I'd rather go through the reinstall now rather than wait a
year and forget what needs doing.
That being said, can someone provide a link or information to where I can
obtain a trusted CA certificate? Sorry if this question is mind-bogglingly
simple.
--
stullhe104 Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232173
full recovery disk
My recovery disk on vista is almost full. I have performed a back up, deleted
all but the most recent recovery point, done a disk clean up and also
compressed the recovery disk. It is STILL almost full. What do I do? Can I
(and how do I) delete the recovery disk? HELP!
--
sparkleban Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232165
serializable Hash class in .Net
****This message has been posted in microsoft.public.dotnet.framework
several days before and received no reply, so I post it here, sorry if
you get duplicate messages****
Hi, all:
I'm new to .Net, so don't laugh at my questions if they sound
silly.
Here it comes, I want to utilize classes in .Net framework
namespace, such as system.collections. Things become simple if I'm
coding in C#( just using ... ), however, I'm modifying a C++ program,
and, it's MFC supported. I think what I should do is to import
corresponding libs to introduce classes and namespaces in .Net
framework. Am I right?
That's the first question. The second is, importing libs seems
tricky, there're few examples I could follow, is it better for me to
build a COM/DLL with C# so that I could just call it in C++?
It would be more convenient if some background is supplied. My
object is to use a serializable hash class to store a large amount of
URLs. It must be serializable, so that at the first time, I could
build hash with URLs as keys, then dump the hash into a file. From
then on, when I get a new URL, first I should load the hash from the
file, next, I could check it among the URLs for existance, rebuild
hash could be avoided.
As to my situation, which hash class is suitable? I've got
system.collections.hashtable, and some
System.Security.Policy.hash, ... Thanks a lot for you help. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232163
Sorry Group!
Sorry about the future-post group. I've noticed a large increase in the
number of general Windows questions hitting this NG lateley and thought I'd
try a test to see if anyone actually reads it.
I've never future-posted before and won't again, but thought it might be
worth a shot to see if it helps at all. Those of you who know me, know I
follow NG netiquitte.
Again, sorry for the inconvenience.
-Scott Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232162
my desktop
my tower wouldnt turn on one day....six hours later it did! when it came on
it said CMOS battery failure. Now whenever I unplug it wont turn on again for
3-4 hours whats wrong??????? Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232160
Unable to start Automatic Update
Hello.
System: Win XP Media Centre Edition â?? Service Pack 3
Somehow, I picked up a variant of VirtuMonde; Symantec Anti-virus, Spybot
Search & Destroy etc did not locate it; I discovered it by chance using
Windows Sysinternals Process Explorer.
I ran Vundo Fix 7.0.0.6 and it removed three traces of VirtuMonde, I then
rebooted and ran Vundo Fix 7.0.0.6 again, this time it found nothing.
However, I noticed that Automatic Update was disabled.
Irrespective of how many so-called â??fixesâ?? I try, I cannot enable it in via
Services. When I set it to automatic and click start, I receive the following
message: Could not start the Automatic Updates service on Local Computer.
Error 1058: The service cannot be started, either because it is disabled or
because it has no enabled devices associated with it.
How do I associate a device with it? If I do the former, is it likely to
help? Has anybody found a solution to this problem< I am open to all
suggestions.
I shall thank everybody in advance for any help with this matter.
Regards,
Pseu. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232157
Disk cleanup is stuck
I am trying to run my disk cleanup and it is stuck on 3 bars compress old
files can anyone help me . Please. I have Windows XP Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232156
When and how to set a boolean variable to true?
I have following code:
void DownloadLists ()
{
if (!mIsListsDownloaded)
{
// Loop -- Downloading entries for each list
foreach (ITritonList list in
TritonListManager.GetLists(true))
{
list.OpenEntries(new
ListDataReadyDelegate(OnEntriesDownloaded));
}
// Wrong in here, because the entries are not
downloaded at this time!!!
mIsListsDownloaded = true;
}
}
void OnEntriesDownloaded(IGridList list)
{
foreach (IGridEntry entry in list.Entries)
{
mEntries.Add(entry);
}
loggerCash.LogMessageBarMessage(ESeverity.Detail,
"Finished downloading entries on list " + list.Name.ToString());
}
The task is to download entries on each list for multiple lists and
then set "mIsListsDownloaded" to true. It's important that the action
"OnEntriesDownloaded" be completed for all of the lists before
"mIsListsDownloaded" is set to true.
I've found this a technical challenge -
The delegate method "OnEntriesDownloaded" takes time to complete.
Also, since "OnEntriesDownloaded" is called for each list and there
are multiple lists, it is called multiple times and it takes
significant amount of time (about 6 seconds, could take even longer
depending on how busy the system is) to complete.
Now the question is that when shall I set "mIsEntriesDownloaded" to
true? I want to wait for 8 seconds because by that time, all of the
entries should have been downloaded. However, there is no guarantee
because sometimes the system takes much longer.
I also don't know the C# syntax of waiting for 8 seconds and then set
"mIsListsDownloaded" to true. Could anyone help? Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232155
Optional parameter
I have two methods that are almost identical, except for the
"HtmlLogger varLogger" parameter passed to #2.
In #1, it uses a default HtmlLogger "logger" while in #2, it uses
"varLogger" parameter.
Other than that, the two methods are identical. I would like to
combine the two methods into a single method, but I wish to know:
- How to identify the optional parameter in the method; and
- When there is no optional parameter passed to the method, how to set
the default as "logger".
Method #1:
void PublishNegativeAlpha ( IGridEntry entry)
{
try
{
foreach (NegativeAlphaForEntry negA in mNegativeAList)
{
if (negA.List == entry.List.Name &&
negA.Ticker == entry.Ticker &&
negA.TargetShares == entry.TargetShares)
{
ESide side = entry.TargetSide;
string strSide = GetSideString(side);
if (negA.Side == strSide)
{
NegativeAlpha neg = new NegativeAlpha();
neg.ObjectId = entry.ObjectId;
neg.NegativeStatus = "Negative Alpha";
CustomObjectManager.Publish(neg,
PublishMode.Regular);
logger.LogMessageBarMessage(ESeverity.Detail, "Published negative
alpha for ticker " + negA.Ticker);
break;
}
}
}
}
catch (Exception e)
{
logger.LogMessageBarMessage(ESeverity.Error,
e.Message);
}
}
Method #2:
void PublishNegativeAlpha ( IGridEntry entry, HtmlLogger
varLogger)
{
try
{
foreach (NegativeAlphaForEntry negA in mNegativeAList)
{
if (negA.List == entry.List.Name &&
negA.Ticker == entry.Ticker &&
negA.TargetShares == entry.TargetShares)
{
ESide side = entry.TargetSide;
string strSide = GetSideString(side);
if (negA.Side == strSide)
{
NegativeAlpha neg = new NegativeAlpha();
neg.ObjectId = entry.ObjectId;
neg.NegativeStatus = "Negative Alpha";
CustomObjectManager.Publish(neg,
PublishMode.Regular);
varLogger.LogMessageBarMessage(ESeverity.Detail, "Published negative
alpha for ticker " + negA.Ticker);
break;
}
}
}
}
catch (Exception e)
{
varLogger.LogMessageBarMessage(ESeverity.Error,
e.Message);
}
} Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232150
Windows Vista will not shut down
i just upgraded from XP to Vista and so far am kicking myself for it. After I
installed and got all my drivers updated i went to shut down windows and it
will not shut down. It closes all programs goes to the shut down screen and
then turns black and I get the blue screen of death. The pc then reboots.
Everything seems to be working proprerly and it is running great, I just have
this one issue. If anyone has any ideas I would love to hear them.
Thanks,
Glenn Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232146
Programs and Features only showing 2 programs
I went to uninstall a program the other day and when I went to "Programs and
features" my computer only shows 2 programs, and then locks up. What is
wrong?
--
Eric H Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232144
networking xp and vista
thanks Scott M for that comment but I am new to this discussion group and
your comment doesn't help one bit Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232138
Microsoft .NET certification
I want to clear Microsoft certification next month for .NET. I am
preparing for the MCTS exam 70-536 that is ".NET Framework 2.0
Application Development Foundation". Since .NET 3.5 is already there,
I want to know till how much time the above mentioned exam will be
available. I also want to know whether I should clear .NET 2.0 papers
or wait for .NET 3.5 exams to release. I also want to know whether the
exam 70-536 is common for future exams too.
I also want the complete syllabus of the exam 70-536 mentioned above.
What all is needed to prepare and clear that exam? From where I can
get real practice questions that is useful in exam? There are many
sites, but which one provides really useful material. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232132
WDS 4.0
I have wds4.0 installed on my comp and now wish to uninstall it but, my
problem here is that it does not appear in add/remove. I have checked windows
programs and there is no uninstaller. I have downloaded wds 3 times hoping
that the installer was there, but no. Wds slows down my comp especially when
I am browsing. I WANT IT OFF.
I have also searched all the forums and it looks like I am not the only one
suffering this problem. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232131
APPCRASH
when I want to close internet explorer its giving me an error that explorere
will restart , its hanging up , iam getting the following reason .
my windows is wiata
Problem Event Name: APPCRASH
Application Name: iexplore.exe
Application Version: 7.0.6000.16681
Application Timestamp: 48113d17
Fault Module Name: StackHash_8d13
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 05510d6c
OS Version: 6.0.6000.2.0.0.768.3
Locale ID: 1033
Additional Information 1: 8d13
Additional Information 2: cdca9b1d21d12b77d84f02df48e34311
Additional Information 3: 8d13
Additional Information 4: cdca9b1d21d12b77d84f02df48e34311 Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232129
Networking xp and vista
I have had a home network with xp for many years. Itried to add a vista
laptop to this network, Ok the vista laptop cansee and access files and the
printer (which is connected to the desktp) on the xp laptop and deskptop but
the both xp machines can neither see or access the vista laptop.
Can anyone help me please I need to see and access the vista from the xp
machines I am starting to become desparate,
. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232110
Create link to a PDF onto a word document
I tried to link PDFs to Word - I have Vista - the linking process works for
Word documents but when I try to open the linked in PDF there is a message:
No program registered to open this file - I have PDF reader 8.0 and 9.0 - it
does not work with any of them. Advise? Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232109
HELP TO RESTORE MY WINDOWS XP HOME ED
MY EMACHINES PC WITH PERINSTALLED WINDOWS XP HOME ED CRASCHED ON ME WILL NOT
RESPONG TO NO PROGRAMS AT ALL FOR HELP SO I HAD TO BRING OUT MY OLD PC EITH
WINDOWS 2000 TO SEE IF ANY WAY I CAN RETAIN A CD DISK TO GET MY WINDOWS XP UP
AND RUNING AGAIN Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232104
Replacing Office 2007 with 2003
Before I delete my trial version of Office 2007 and install 2003 do I need to
back-up all of my files or will they be saved and then just automatically
open in o3 after it's installed. Also what else will I need to download to
enable 03 to work with Vista?
Thanks
--
Serrena Hudson Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232103
NTbackup fails after running fine for 1 years
I have found lots of people talking about this issue, but no one seems to
have a solution. I could really use some help here. Has anyone seen this or
have any ideas?
I have been running the same backup for 2 years and I came in one morning
and it just decided it would not work anymore.
Histroy:
* Windows 2003 Server
* Role - DC
* I checked the media to make sure I can read it.
* I made sure the backup was failing by checking the data on the restore
and it is not current
* Backup reports are blank
* I deleted the my local profile and the profile used for backup
* I deleted the backups and recreated them
* I varified the account is not locked out and the password is correct.
* I did open the task manager and place a /um at the end of the command
line to make the media unmanaged.
* Nothing has changed on this server
* No new tapes have been introduced
* Anti-Virus reports everything is clean
* No new software have been installed
Events:
Event Type: Warning
Event Source: Userenv
Event Category: None
Event ID: 1524
Date: 7/31/2008
Time: 11:00:33 PM
User: Domain\Account
Computer: DC
Description:
Windows cannot unload your classes registry file - it is still in use by
other applications or services. The file will be unloaded when it is no
longer in use.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: Userenv
Event Category: None
Event ID: 1516
Date: 7/31/2008
Time: 11:01:04 PM
User: NT AUTHORITY\SYSTEM
Computer: DC
Description:
Windows unloaded user S-1-5-21-1203075926-436352153-549210805-2132_Classes
registry when it received a notification that no other applications or
services were using the profile.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 528
Date: 7/31/2008
Time: 11:00:00 PM
User: Domain\Account
Computer: DC
Description:
Successful Logon:
User Name: Account
Domain: Domain
Logon ID: (0x0,0x40003F)
Logon Type: 4
Logon Process: Advapi
Authentication Package: Negotiate
Workstation Name: DC
Logon GUID: {****1f30-fc37-bc46-19c4-d9745d3561**}
Caller User Name: DC$
Caller Domain: Domain
Caller Logon ID: (0x0,0x3E7)
Caller Process ID: 1024
Transited Services: -
Source Network Address: -
Source Port: -
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 576
Date: 7/31/2008
Time: 11:00:00 PM
User: Domain\Account
Computer: DC
Description:
Special privileges assigned to new logon:
User Name:
Domain:
Logon ID: (0x0,0x40003F)
Privileges: SeSecurityPrivilege
SeBackupPrivilege
SeRestorePrivilege
SeTakeOwnershipPrivilege
SeDebugPrivilege
SeSystemEnvironmentPrivilege
SeLoadDriverPrivilege
SeImpersonatePrivilege
SeEnableDelegationPrivilege
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 576
Date: 7/31/2008
Time: 11:00:00 PM
User: Domain\Account
Computer: DC
Description:
Special privileges assigned to new logon:
User Name: Account
Domain: Domain
Logon ID: (0x0,0x4003A3)
Privileges: SeSecurityPrivilege
SeBackupPrivilege
SeRestorePrivilege
SeTakeOwnershipPrivilege
SeDebugPrivilege
SeSystemEnvironmentPrivilege
SeLoadDriverPrivilege
SeImpersonatePrivilege
SeEnableDelegationPrivilege
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 540
Date: 7/31/2008
Time: 11:00:00 PM
User: Domain\Account
Computer: DC
Description:
Successful Network Logon:
User Name: Account
Domain: Domain
Logon ID: (0x0,0x4003A3)
Logon Type: 3
Logon Process: Kerberos
Authentication Package: Kerberos
Workstation Name:
Logon GUID: {****030b-c1ec-d8ec-c322-f45a0e16a5**}
Caller User Name: -
Caller Domain: -
Caller Logon ID: -
Caller Process ID: -
Transited Services: -
Source Network Address: 10.168.20.35
Source Port: 0
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Detailed Tracking
Event ID: 592
Date: 7/31/2008
Time: 11:00:00 PM
User: NT AUTHORITY\SYSTEM
Computer: DC
Description:
A new process has been created:
New Process ID: 3548
Image File Name: C:\WINDOWS\system32\ntbackup.exe
Creator Process ID: 1024
User Name: DC$
Domain: Domain
Logon ID: (0x0,0x3E7)
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Success Audit
Event Source: Security
Event Category: Detailed Tracking
Event ID: 600
Date: 7/31/2008
Time: 11:00:00 PM
User: NT AUTHORITY\SYSTEM
Computer: DC
Description:
A process was assigned a primary token.
Assigning Process Information:
Process ID: 1024
Image File Name: C:\WINDOWS\system32\svchost.exe
Primary User Name: DC$
Primary Domain: Domain
Primary Logon ID: (0x0,0x3E7)
New Process Information:
Process ID: 3548
Image File Name: C:\WINDOWS\system32\ntbackup.exe
Target User Name: Account
Target Domain: Domain
Target Logon ID: (0x0,0x40003F)
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: Service Control Manager
Event Category: None
Event ID: 7035
Date: 7/31/2008
Time: 11:00:01 PM
User: NT AUTHORITY\SYSTEM
Computer: DC
Description:
The Removable Storage service was successfully sent a start control.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: Service Control Manager
Event Category: None
Event ID: 7036
Date: 7/31/2008
Time: 11:00:01 PM
User: N/A
Computer: DC
Description:
The Removable Storage service entered the running state.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: Removable Storage Service
Event Category: None
Event ID: 98
Date: 7/31/2008
Time: 11:01:04 PM
User: N/A
Computer: DC
Description:
RSM was stopped.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: Service Control Manager
Event Category: None
Event ID: 7036
Date: 7/31/2008
Time: 11:01:04 PM
User: N/A
Computer: DC
Description:
The Removable Storage service entered the stopped state.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232102
how to get my preinstalled windows xp homr edd back
my windows xp home edd crasched on my emachines compter iam now back on my
old compter windows 2000 can enyone help me get my windows xp wmachines pc up
and runring with out the xp cd disk xp was preinstalled Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232100
man email spell checker,
I thought I downloaded msn spell checker in english but instead I got in
canada french how do i get it in english Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232097
Error message when logging on
I get an error message of 0xc0000005 when logging into my PC. It then just
goes to a desktop backround picture with no icons or toolbar. What can I do
to fix this problem? Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232094
rundll error message
error loading c:\windows\system32\fkvvvuuw.dll the specified module could
not be found comes up when you first log in Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232091
YHO about Try-Catch use.
I am looking for some feedback on using try catch statements.
Usually when I start a project I use them for everything, but stop
using them as often after the "meat n' potatos" of the project is
finished.
I am thinking it would be useful to at least have a blanket try-catch
to surround all of the code, and add more to aid in debugging and
catching specific exceptions. I want to change my habits but before I
do I wanted to see if anyone on here had any opinions.
Thanks. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232081
Upgrading to VS2008 Question
I have VS2005 Professional. I am unable to install it on my new Vista 64-
bit computer. The only reason I wanted to install it was to be able to
purchase and install VS2008 Upgrade version. If I purchase VS2008 Upgrade
(rather than the full non-upgrade version), will I be able to install it
or will I be told no copy of Visual Studio can be found to upgrade? Is
there any solution to this problem?
TIA Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232077
checkboxlist - items on change event
i've tried to add an onchange event to my checkboxes(created dynamically)
chkboxlist.attributes.add("onchange", "dothat();")
but it renders the onchange to the table it creates and not to the list
items. I need to add the onchange event to all the checkbox(s) that are
created dynamically. I've even tried
dim li as ListItem
for each li in chkboxlist
li.attributes.add("onchange", "dothat();")
next
but it still renders to the table that the chkboxlist creates rather than
the items.
Can this be done? If so can someone give some good examples?
thanks!
jason Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232075
Web.Config identity impersonate=??
Hi,
I think i've got the idea about impersonation after reading many articles
about it but the one thing i'm not sure about is what is the effect of
remming out the whole identity imperonate=?? line? Does this default to
impersonate=false or, impersonate =true, or something else?
<M> Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232074
slow computer
My computer used to be very fast, opening programs in less than a second...
now something has changed, and it takes between 1-5 minutes to open
programs.... i can't defrag my computer, because it fails halfway through,
because of the slow speed. i don't know what to do.... except that because of
how slow it is, most of the time i'd rather just leave it off... but i have
work to do, so i bear it with a large grain of salt.... is there a(ny)
solution(s) out there? Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232070
What's wring with this try-catch block?
This is freaking me out. I'm using Membership and trying to determine if the
database is online. The GetConnectionString( ) method returns a connection
string as expected but not when used in the try block.
I have the Open() and Close() methods commented out while using the
Response.Redirect to test.
The code in the try block as shown will --never execute-- but the code in
the catch block --always executes-- whether the database is online or not.
WTF???
protected void LoginButton_Click(object sender, EventArgs e)
{
// Redirect proves this test works
//Response.Redirect(ResolveUrl("~/homepage.aspx?LoginButton_Click"));
SqlConnection testConnection = new
SqlConnection(GetConnectionString("MyConnectionString"));
if (!String.IsNullOrEmpty(testConnection.ToString()))
{
try
{
//testConnection.Open();
//testConnection.Close();
Response.Redirect(ResolveUrl("~/homepage.aspx?MyConnectionString-Found"));
}
catch (Exception ex)
{
Response.Redirect(ResolveUrl("~/homepage.aspx?LoginButton_Click-Caught-Exception"));
}
}
} Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232067
COM+ COmponet Disable Event?
I have a COM+ application made up of 3 components. In the Component
Services UI on the Win2003 server, I can right-click and disable any
Component. Then I can right-click and enable it again.
I want to do something when that happens. How can I trap that event? I
guess it would be good to know how to trap the event for
enabling/disabling an Application too.
Thanks. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232066
Microsoft Streets and Trips 2001
I have the program on CD which came with another PC but it died. I bought a
new PC running WinXP Home. The streets and trips CD will not install, it
won't launch, it doesn't do anything. Any idea why I can't get it to install
and run? I own it, and want to use it. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232062
How can I manage/encapsulate failures of an Active X control
I have an Active-X control provided by a vendor that will
inadvertenly
crash while processing. The good part is that I do have a way to save
information routinely as it is processing in the event it crashes.
From there I can start over and I can eventually finish the process.
My problem is that at this stage I have been doing this manually, but
now I have to come up with an automated solution. What I want is to
have my program run, save the data at increments and restart when the
Active- X control crashed without the user ever knowing it.
My mayor concern which is also the main question. Is how to do it the
best way, and if there is a possibility for memory leaks.? The
problem
with a memory leak is that eventually the spawning process may not
work and it would default to the original behaviour of crashing in
the
middle of the process. I would normally want to call the process
using
a regular procedure call instead of a command line call. But it may
be
that the command line islates the processes better.
I am asigning "Nothing" to the Active-X object at the end of the run,
and I also have a try block to make sure the asignment runs.
Thanks in advance for any help.
Arturo Hernandez Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232059
How can I manage/encapsulate failures of an Active X control
I have an Active-X control provided by a vendor that will inadvertenly
crash while processing. The good part is that I do have a way to save
information routinely as it is processing in the event it crashes.
From there I can start over and I can eventually finish the process.
My problem is that at this stage I have been doing this manually, but
now I have to come up with an automated solution. What I want is to
have my program run, save the data at increments and restart when the
Active- X control crashed without the user ever knowing it.
My mayor concern which is also the main question. Is how to do it the
best way, and if there is a possibility for memory leaks.? The problem
with a memory leak is that eventually the spawning process may not
work and it would default to the original behaviour of crashing in the
middle of the process. I would normally want to call the process using
a regular procedure call instead of a command line call. But it may be
that the command line islates the processes better.
I am asigning "Nothing" to the Active-X object at the end of the run,
and I also have a try block to make sure the asignment runs.
Thanks in advance for any help.
Arturo Hernandez Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232058
print queues and print migrator 3.1
ran backup on win 2003 server, ran restore on a test win 2003 server. restore
completed with errors. I don't see any printers or queues on the test server?
I thought the tool would move print queues and all the settings? Am I missing
something here? Please do not link to the white paper as I have it all ready.
Thanks for any info Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232057
P/Invoke Problem selected index changing
I'm writing a .net application that will update several textboxes and
comboboxes on a 2nd app (3rd party-no source). I have the part that is
updating the textboxes and comboboxes working pretty well.
The problem is that it looks like they have the some events tied to one
of the comboxes selected_index_changed events so that it changes one of
the textboxes to a combobox or vice-versa. When I enter something in a
the combo manually and tab out the 2nd control changes, but this does
_not_ happen when I use my api calls. I've tried setting the focus
through api calls, but this doesn't do anything either. Is there
someway to fire the app's combo event. I'm a little stuck here, and
would appreciate any suggestions.
Some code:
Private Const WM_SETTEXT As Int32 = &HC
Private Const CB_SETCURSEL As Long = &H14E
Private Const CB_FINDSTRING as long = &H14C
Public Const WM_SETFOCUS As Long = &H7
Private Const WM_PASTE As Long = &H302
Private Declare Function SendMessageByString Lib "user32.dll" Alias
"SendMessageA" _
(ByVal hwnd As IntPtr, _
ByVal uMsg As Int32, _
ByVal wParam As IntPtr, _
ByVal lParam As String) As Integer
Public Declare Ansi Function SendMessage Lib "user32.dll" Alias
"SendMessageA" _
(ByVal hwnd As IntPtr, _
ByVal wMsg As Int32, _
ByVal wParam As Int32, _
ByVal lParam As String) As Integer
''set focus -
<DllImport("user32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
Public Shared Function SendNotifyMessage(ByVal hWnd As IntPtr,
ByVal Msg As UInteger, ByVal wParam As IntPtr, ByVal lParam As IntPtr)
As IntPtr
End Function
...
''this is how I select the combobox
iCountryCbo = SendMessage(Parent_hWnd, CB_FINDSTRING, -1, "United
States")
''try to set focus
SendNotifyMessage(ipCountry, WM_SETFOCUS, IntPtr.Zero, IntPtr.Zero)
SendMessageByString(ipCountry, CB_SETCURSEL, iCountryCbo, 0)
SendNotifyMessage(ipZip, WM_SETFOCUS, IntPtr.Zero, IntPtr.Zero)
I tried moving the setfocus calls around with no luck- Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232056
using Microsoft Print Migrator 3.1
Ran a backup on a win 2003 server where all the print queues are located. On
a test server win 2003 ran a restore, the restore completed without error.
But I don't see any print queues or printers setup on the test server. I
thought the tool was supposed to be used for printer migrations. Please do
link to the white paper, I all ready have it. Just need info on what step I'm
missing. Thanks. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232055
Catch SqlException?
Using SQL Server Manager takes forever to take a database offline. What
other approaches might I consider to catch SqlExceptions?
Currently only concerned with Membership logging in, creating and changing
email and so on. Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232050
Windows Service Account
I'm hoping someone can give me a little guidance. I have written a
simple Windows Service that goes out and scrapes a few web pages and
updates some data in an access database. The service works correctly
in the IDE and trying to be a good citizen I set it to run as "Local
Service" when I install it.
However once installed it fails silently. My log eventlog message
saying the the DB was updated successfully is written, however the
actual write to the database doesn't happen. There does not seem to
be an error or exception that I can catch, it just doesn't write.
Once I change the service to run as "Local System" it works
correctly. So my question is should I really avoid using "Local
System". I have read the articles explaing he dangers, yet I see lots
of services running as it on my system. Maybe its more like a
guidance "Do so if you can, but if not don't worry too much about it?"
Is there another option? Is there a better way to know where the
problem with the "Local Service" account exists? Like I said when I
debug it in the IDE it works correctly, but at that point it is
running as my user account (which apparently has all the rights it
needs).
Should I just create another user account and play with the permission
until I find the right ones. This service goes out to client
locations so I hate to make them do too much manual work in creating
an account (as some clients I doubt would even know how to do it),
etc?
Thanks,
Matt Tag: =?Utf-8?Q?I_don=C2=B4t_view_the_value_right_aft?= Tag: 232045
Even making calculations only by the Excel submitted figures are not correct
from the 6 decimal place, and I updated with Office (last SP), which can be?
=?Utf-8?Q?RE:_I_don=C2=B4t_view_the_value_right?= by FamilyTreeMike
FamilyTreeMike
Wed Aug 06 09:50:01 CDT 2008
I think you need to ask this in microsoft.public.excel, unless you are trying
to do this through a .Net program you are writing.
"Claudio" wrote:
> Even making calculations only by the Excel submitted figures are not correct
> from the 6 decimal place, and I updated with Office (last SP), which can be?