seco's Q&A profile
Visual C++ No memory leak detection in native lib when called via managed wrapper (c++/cli)?!
Hi, I'm testing around with a native library (c++) and it's managed wrapper (c++/cli). The wrapper is called by a little c#-program. In the native library I inserted some pieces of code for memory leak detection like: #define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h> and _CrtDumpMemoryLeaks(); It works "fine" (it detects memory leaks) when I call it from a native exe-project like: int _tmain(int argc, _TCHAR* argv[]) { VConcreteClass1* pObj = new VConcreteClass1(); return 0; } Then the output-window in my vs2005 shows: Detected memory leaks! Dumping objects -> .... But when I create an object of the VConcreteClass1 via VConcreteClass1* pObj = new VConcreteClass1(); and without delete pObj; then ...Show All
Visual Studio Express Editions caller ID and C#.net
hi developers... i want to do a windows form that showing caller id.. i ha ve a external modem which support caller ID so who can show me a way or example code http://www.codeproject.com/useritems/CShart_TAPI_3x.asp http://groups.google.nl/groups q=tapi+caller+id+with+c%23&hl=nl&lr=&sa=X&oi=groups&ct=title ...Show All
.NET Development Complex Event Processing / Event Stream Processing
Hi, I was wondering if anyone here has some experience building a CEP/ESP engine on top of the .NET Framework If so, could you give some starters how this scenario was approached Thanks! Tom Hi Salvador, thanks a lot for your reply! I'm having a two-fold use case that I want to target here within a financial trading solution domain. One is as you mentioned server side event processing, analyzing order flow and financial market data. However #2 is that the same engine should be applied to client front-ends. Goal is to provide a visual IDE for clients, so they can quickly build a rule set to analyze the subset of data they are receiving and trigger certain actions based on them. This cuts short the usage of ...Show All
Visual Studio 2008 (Pre-release) Catch property changed event in xaml
hi, i'm creating a custom button control which inherits from System.Windows.Control.Button and implements the INotifyPropertyChanged interface. How can i catch the event in my XAML when a property of the custom changes Can i do this with a EventTrigger within my style in the XAML File Furthermore i want to the change the style of my control in XAML, depending on the value of the property Any ideas Thanks a ton, bkohler Sheva, could you please post a short example how i can handle this. I do not only want to catch the event when the property's value has changed, furthermore i want to interpret the changed value of the property to change the style depending on the new v ...Show All
.NET Development manual IL code fails verification with "unable to resolve token"
Hi, I'm trying to write a (naive concept test) script that adds a prologue & epilogue to methods. It modifies the output of ildasm on an assembly to create a new IL file which I in turn compile with ilasm. It works by adding the following lines to the begining of every method: call class [Reflex]Reflex.ReflexWriter [Reflex]Reflex.ReflexWriter::get_Instance() callvirt instance void [Reflex]Reflex.ReflexWriter::Enter() It works on very simple assemblies I compiled with C#. To challenge my naive idea, I tried running it on the fxcop executable. The executable compiled but peverify fails with many similar errors, I copied the first one here: [IL]: Error: [D:\Program Files\Microsoft FxCop 1.35\FxCopy_trac ...Show All
Visual Studio 2008 (Pre-release) Open the configuration file.
I have a question regarding the opening of the configuration file. I have written a library to assist me writing ASP.NET webservices and I want to use it in WCF applications. How do I open the configuration file so I can get my custom section The service is hosted in the ASP.NET developement server but will be hosted in IIS6. Thanks in advance, Trilobyte ...including the overview of the ASP.NET compat mode . Cheers, ...Show All
Visual Studio Team System n mi Upgrade database to specified version in automated build task
We are using team build to run a nightly build and deployment to our test environment. We are thinking about to create a DBScripter.exe app to upgrade our Oracle DB to the specified version. It will look for change scripts and handle the upgrade of the database to a specified version. What can be a good approach to integrate this in the build process I was thinking about calling this at the BeforeCompile Event and the Exec command. But if the return code is less than zero from DBScripter.exe I want to cancel the build. How can I check for the return code and cancel the build if there is any error I would also thinking about using the assembly info task to apply a custom build number to the assembly files. How can I access the buil ...Show All
Software Development for Windows Vista Drivers signing question.
Hi all! My product installs a boot-start filter-driver, but uses co-installer for its setup. I have successfully signed this driver using MS recommendations, but I have a number of questions and I would be very happy if someone could help me clarify them: 1. For LOGO certification - is it obligatory to install filter-driver through .inf file or I can use co-installer 2. Shall I generate .inf and .cat files if I use 'co-installer' way 3. MS docs say that .cat files must be signed with a cross-certificate. But what about .sys-files inside the driver package What certificate should I use - from Verisign or the cross-certificate 4. In case of '.inf-file' installation scheme, are the sign rules similar for device drivers and for filter-drivers ...Show All
Smart Device Development Connecting multiple PDA to a desktop pc
Hi Can i connect multiple PDA's to my desktop PC , so that the PDA app can cosume the webservice, Currently i am connecting single PDA to the PC using the bluetooth USB adapter Regards Gauls if the bluetooth stack belkin uses allows it to serve as a bluetooth modem, and the PDAs allow null modem connectivity, then yes, I believe you're able to do what you're asking. you'll also need the network card on the PC to be set up for internet connection sharing. ...Show All
Visual C++ multiple libraries problem
i am attemoting to use multiple libraries for my program since i need to use a library created by an outside party which contains functions i need in my proram. the problem is when i add this library to my Additional Dependencies this is the error messages i get (the include/sources/etc paths also already changed to include the new funcations) Linking... LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRTD.lib(MSVCR80D.dll) LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRTD.lib(MSVCR80D.dll) LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRTD.lib(MSVCR80D.dll) LIBC.lib(fflush.obj) : error LNK2005: _fflush already defined in MSVCRTD.lib(MSVCR80D.dll) LIBC.li ...Show All
SQL Server Trying to connect to SharePoint database
I am having trouble connecting to the SharePoint database on my web server. Our company intranet is accessed by http://webservername/ and the SharePoint site is accessed by http://webservername:2020/ (I wanted to put it on a different port to not interfere with our old intranet). Anyway, I need to connect to the DOCS table on the content database, but I can't seem to connect with SQL Server 2005. When I connect to webservername I see our company database but I don't see anything that has to do with our SharePoint stuff. I've tried connecting to webservername, webservername:2020 and webservername\SharePoint and webservername:2020\SharePoint with no results. If this isn't the right MSDN forum for this I apologize, but any advice would ...Show All
Smart Device Development Heyelp! Using SendKeys in Visual Studio 2005
Ok, I've only been using VS for about a month now, writing a little form/program to run on a PDA. All working fine, but it was suggested the PDA 'ok' key (return key basically) should be recognised and move the cursor from one prompt to the next. All sounds simple enough................... Well, I can trap the ok/return in the KeyPress event, but I then want to input a 'Tab' so that you move to the next prompt. So, I thought use SendKeys. But it doesn't appear to be available in System.Windows.Forms Is there something simple I am not doing We are using Visual Studio 2005 Standard Edition. When I look through the help system, SendKeys is included, but for some reason it is not currently available within the environment that is set up ...Show All
Visual C++ Return value incorrect
Hi, I've got a very weird thing in my program, const bool getRunning() const { Lock(); bool t = m_bRunning; Unlock(); return t;} Where m_bRunning == true; it returns false. ( lock and unlock handles the thread safety ) after the Unlock(), t contains true. but the return value is always false. even weirder, with code optimalisation on, the function isnt even reachable. it just skips it. //DEBUG 0041B5FE call Gameye::CApplicationInfo::getRunning (411677h) 0041B603 movzx ecx,al 0041B606 cmp ecx,1 ECX contains 205 after this. Please can anyone tell me whats going on Well, bool is usually tested for 0/not zero, that is if you write the following code: if (getRunn ...Show All
Software Development for Windows Vista SQLTracking and Persistence
Hi, At the moment, I can't make SQLTracking and SQLPersistenceService work together. Here are my situation: Situation 1 - SDK (v6.0) Sample : Technologies\Hosting\PersistenceServices When I run the Sample, it works ok, so I tried to add the TrackingService to it with the following VB.NET Code: Dim TrackingService As New SqlTrackingService(TrackingStoreConnectionString) currentWorkflowRuntime.AddService(TrackingService) I didn't write any code to add Tracking Profile yet. But this time when I run the application, it stopped at the line: Workflow is idle And then keep on wating. No persistence occur. Why Situation 2 - ASP.NET (State Machin Workflow) I have an ASP.NET page which start the workflow l ...Show All
Visual Studio Express Editions P2P Help needed
HI, I would like some help in trying to create a P2P program but im not sure where to start, what codes do i need The program will be used for sharing files to other users Im using Visual basic 2005 express edition and would like help tj2007 you would need to know about things like: TCP Client: http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx TCP Listener: http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx NetworkStreams: http://msdn2.microsoft.com/en-us/library/system.net.sockets.networkstream.aspx You may also wish to consider Xml as some form of "communication" meaning, to understand perhaps user requests and so on, or create your own mechinism f ...Show All
