Lightening's Q&A profile
Visual Studio Tools for Office VSTO 2005 Outlook Add-In Security Access Popup
I've built a VSTO Outlook Add-In that uses OOM to access properties of a MailItem. It is my understanding that Outlook trusts COM add-ins and therefore does not pop-up the Security Warning dialog when certain properties are accessed. This is the case in our development and test environments - no pop-ups. However, when we install the add-in at the customer site they get the Outlook Security Warning pop-up. What configuration settings or security policies should we compare between the test and production machines to see what might be causing the Security Warning The add-in is being installed on Windows Server 2003/Outlook 2003 SP2. Are you referring to the Outlook security template that has to be de ...Show All
Windows Live Developer Forums Assign to Pushpin
I have a set of pushpins whos ID range from 0 to 4. So I was wondering if there was a way to assign the code listed below to a single pushpin (by ID ) Thanks function PinClick(id) { document.getElementById('txt1').value = ("ID 0"); document.getElementById('txt1').value = ("ID 1"); document.getElementById('txt1').value = ("ID 2"); document.getElementById('txt1').value = ("ID 3"); document.getElementById('txt1').value = ("ID 4"); } Yeah, sorry, I meant "switch/case". So it would look something like this (note: I haven't compiled/tested the following; it is pseudo-code): function PinClick(id) { ...Show All
Visual Studio Team System Now that we've made a total mess of things... How to put it back again
It all started when we added three new assemblies and files to the solution. Not noticing the "Add Solution to Source Control" in the massive solution explorer context menu, we added the assemblies manually using Source Control Explorer Add Files / Add Folder. To our surprise it was as if these files were not in source control at all! You could edit them all day without checking them out. You had to check them out using source control explorer or nothing, and they did not show locked in solution explorer. They do show up in the check in window. So we tried to create an entirely new project by adding the existing solution to source control. This was an even worse idea. What we got was the new assemblies at one level in th ...Show All
Visual Studio 2008 (Pre-release) WCF integration with GSOAP
Hi, I’m trying to write a c++ client that talks to .net WCF server. For that aim I’m using the GSOAP application. I was successful in writing a c++ client that talks to an asp.net server, but when I tried to write c++ client and a WCF server they failed to interact. When the client sent a request to the server the following fault was received: Error 415 fault: SOAP-ENV:Server [no subcode] "HTTP Error" Detail: HTTP/1.1 415 Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'. It looks like the WCF server doesn’t know how to deal with the format of the client requests. Does anybody know why this occurs Can I change the ...Show All
Visual C++ A namespace with this name does not exists
Hi dear pigs, I have a header file named ST1.h which you can see below: ++++++++++++++++++++++++++++++++++++++++++++++++++++ #ifndef ST1_H #define ST1_H #if _MSC_VER > 1020 using namespace std; #endif #include "POUBase.h" #include "std_fbn.h" #include <stack> class ST1 : public POUBase { public: //============= Extra Vars For Debugging ===================== bool breakPoint[1]; int CfileIP; //============= Outputs ===================== int SABALAN; //============= Locals ===================== unsigned int zer; private: //============= LocalOutputs ===================== int SABALANLocal; //Function instances public : virtual void Run() { //======== ...Show All
Visual C++ Form1 Lost All Controls?
Hi everyone. I'm using VS2005 C/C++ and I'm having a problem where the main form (typically Form1) in my Windows Form application has mysteriously become corrupted and all of its controls have disappeared. Oddly, the Form1.h file still has all of the code for the Form - nothing appears to be wrong with it. I've shutdown/restarted the studio with zero effect. As well, I've removed Form1.h and Form1.resx from the project and re-added them, but no effect either. In the latter case, Studio just adds the the files to the solution, but doesn't actually rebuild the form :( Is there a way I can add Form1.h/Form1.resx back to my project and have Studio rebuild the form I've checked out posts from others who've had similar problems and they'v ...Show All
Visual C# Need help with enum and color assignment
Hi, I need help with some enum and color assignment. This is what I need to do. I have an enum like: public enum statusFlag { Unknown = 0, Easy = 1, Medium = 2, Hard = 4, ExtremlyHard = 8 } From xml: (not sure how this is repesented) Unknown = Black Easy = Green Medium = Yellow Hard = Orange ExtremelyHard = Red Now, I have a set of color for each of the different status flags. These colors are user definable. Possibly will reside in an xml file. I am wondering how am I doing to do this requirement in C# assuming the color matching color of each status flag will be coming from an xml file (probably, app.config file) So, depends on the status variable, I need to pass back the equivalent color. ie. Is is probably going to ...Show All
Silverlight (formerly WPF/E) Does Downloader allow cross domain calls?
I'm developing a WPF/E application and I'm trying to download content using the Downloader object. While this works when the url property points to a relative path the downloader fails (no event is ever fired) when the uri points to another site/domain. Is there a security restriction preventing cross domain downloader calls Wouldn't be usefull an onError event on the downloader were you could retreive information on why your request failed Thanks I couldn't agree more with you. My post on XMLHttp working across domains was not a workarround to the problem but an answer to Byant Likes who claimed that it didn't. Of course we need something that works without the user having to change his/hers IE security settings. I still can not figu ...Show All
Visual C++ error LNK2019: unresolved external symbol _main referenced in function __tmainCRTStartup
When I try to compile with VS2005 enabling unicode support I get that error. // standard windows headers #define _WIN32_WINNT 0x0400 #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <tchar.h> #include "strconv.h" extern int utf8_main(int argc, char **argv); //============================================================ // main //============================================================ #ifdef __GNUC__ int main(int argc, char **a_argv) #else // !__GNUC__ int _tmain(int argc, TCHAR **argv) #endif // __GNUC__ { int i, rc; char **utf8_argv; #ifdef __GNUC__ TCHAR **argv; #ifdef UNICODE // MinGW doesn't support wmain() directly, so we have to jump through some hoops extern void __wgetmainar ...Show All
Visual Studio Sandcastle - how to insert 'line break' within <summary> tag
Hello, I tried to insert some line break using <br/>. However, this has no effect. They are reflected in the xml file generated at VS compilation time but ignored by SandCastle when generationg the chm file. This was supported by NDOC under vs2003. Does anyone know how to insert such line break Thanks, Jose hi, Thanks,.... I had tried it several times before but it never worked fine..... Reading your email I realised that all tags should have closing-tags included (img and /img)...... We are talking XML-here... offcourse!!! Thanks for your reply. Kind regards, Stephan Smetsers ...Show All
Internet Explorer Development Windows Services Question
Hello All! Hope your all having a good weekend! Well lets just get started then. I am trying to write a service that will run a scan of the current logged in user's IE history. This project was given to me by my employeer and the means for this project is to compare all visted links in IE history to a white list and log those that are beyond the scope of the employee. I have completed the network and ie history parsing aspects of the project. The issue I am currently running into is getting the application run unknown to the user, but as if the user ran it. I am currently investigating Windows Services but having difficulty getting the required code to run as the user so the history parsed will be that of that who is logged in. ...Show All
.NET Development Passing SecureString to a web service
Hi there, I am building a windows forms client application that is attempting to send a custom soap header to a web service. The custom soap header is defined in the Service.cs of the web service as follows: public class AuthHeader : SoapHeader { public String userName; public System.Security.SecureString passwd; } The web service class exposes an AuthHeader member as a public field like so. public class Service : System.Web.Services.WebService { public Service () { //Uncomment the following line if using designed components //InitializeComponent(); } public AuthHeader sHeader; // Rest of the class .... } It is necessary to pass in credentials for impersonating the user logged on to the client application ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Product.cab not found?!?
I tried to install Beta 2 after uninstalling Beta one and I got a lovely message when the installer was trying to copy over new files "Product.cab could not be found"... With the option to Abort, Retry or Ignore... Of course ignore rolled it back... What can be done to fix this I'll try to download the .msi again, but it's going to take me a while... Well, my first suggestion would be to try and run the installer again (although I'm guessing you've already done that) and if the same error comes up, I don't think you have any other option but to download the installer a second time. Just really sounds like the installer was corrupted during download. Hopefully, the second time is the charm and you'll be up and running ...Show All
Visual Studio Express Editions VB Express Teaching Aids - Recommendations?
I am looking for recommendations for any guidebooks for learning VB Express. Right now, I'm leaning towards "VB Express for Dummies", but if there's anything better that veteran members of the community know of, I'd be interested to know. Personal History: Long, long ago (in High School/University. About 15ish years ago) I took programming in school, almost exclusively Pascal/Turbo Pascal. I dabbled with it as a hobby for a couple years but gave it up to pursue other interests. I've recently discovered VB Express and have caught the programming bug again. However, I'm a little out of practice. Ok, a lot out of practice. I've gone through the first few tutorials, but I find I do much better having a lesson book to referen ...Show All
Visual C++ Why only static const integral data members can be initialized within the class
My code is like this: class HMatrixCompute { ... static const double _thresh = 1.5; }; It's wired that the data member initialization line is an error in term of Visual C++ 2005 Express. Why Leo I was not even aware you could do this. Is this new in VC8 I tried this on GCC 3.4.4 and it works on both int and double. The online comeau agrees with VC8. Also, I'm not quite grasping why doing this in class scope should fail while doing this in function scope is okay. Can you elaborate as to why the compiler needs this restriction class X { static const double d = 1; // error }; void main() { static const double d = 1; okay } ...Show All
