.net

Not able to CALL the functions of COM DLL from a VC++ application?

Hi i have explained the scenario in one of my earlier questions in the link, http://stackoverflow.com/questions/4008156/how-to-call-functions-of-a-com-dll-in-vc-from-a-vc-exe-application/ and also the answer helped me to a great extent. . My calling application is building perfectly. But I am encountering problem, when I am debugging th...

Abstract Class Design: Why not define public constructores ?

Hi guys, Look at here (Abstract Class Design): http://msdn.microsoft.com/en-us/library/ms229047.aspx It says: (1) Do not define public or protected internal (Protected Friend in Visual Basic) constructors in abstract types. In C#, we are not able to instantiate an abstract class. So, does it still matter to define public constructors...

Convert hex representation inside a string to binary equivalent

In a string, replace every occurrence of <0xYZ> with the character of hex value YZ. The < and > characters will be used only for that purpose, the string is guaranteed to be well formatted. Example ('0' = 0x30): A<0x30>B => A0B It's an easy task, but there are many solutions and I was wondering about the best way to do it. ...

Sync Framework how to use dynamic connection string

Hi, In my scenario I synchronize client database SQLCe with server database Sql Server 2008. Client database is in users folder so that connection string is built dynamically on each app. Is it possible to set dynamic connection String in syncprovider ? thanks for any help ...

Parallelism with .NET 4.0 in a desktop sqlite single thread application?

Where do you see operation scenarios for parallelism/multi-threading/PLINQ etc for a single threaded WPF desktop app with sqlite? I would like to know wether I could tune my application somehow and even when it is just for the learning effect :) ...

How to customize activity in re-hosted Workflow 4 Designer?

This article shows how to create a custom activity in a rehosted Workflow designer (with Workflow Foundation 4). In that example, a MyDelayActivity is created by implementing the IActivityTemplateFactory interface, and specifying the default value to the Delay inputs. However, is it possible to modify the inputs of the activity as well...

Drop Down List in .NET Windows application

Hi All, First of all thanks to all, now I am getting the dropdown value change on the selection of first dropdwon. PFB the source code. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace TestE...

JQuery jqModal not re-initialising after show, and eval() not working on __doPostBack()

Hi, I'm trying to get the JQuery jqModal extension to work as a confirm box, as per the example given on the jqModal website ( http://dev.iceburg.net/jquery/jqModal/ ), and incoprate this function into a dotnet usercontrol so I can re-use it over the website. This is the code I've written so far. The control has a TriggerID property wh...

Response.write and locale settings

Hello, I am using VB .NET 4.0, ISS 7.0. I wondered how can I set the default locale for all applications? The problem is rising when I have a Response.Write(str) the numbers appear with ","(german notation) rather than "."(us notation). From where .NET knows that he need to use the german locale? In every my js script I have added ...

What options do I have for creating OLAP cubes with Postgres and making it accessible via .net webservices/wcf?

We have a large POSTGRESQL transactional database (around 70 million rows in all), and have previously created a data warehouse from this (updated daily) to run reports off of. To make this more flexible (as lots of different users require different reports and aren't very good at specifying what they want) we would like to create a mul...

.net multi-threading

I'm writing dll which must run a function multiple times using different parameters, parallell to everything else. I've tried the following methods: Backgroundworkers MethodInvoker Threads etc What's the best way to do it? Update: I'm writing a dll, no GUI involved ...

WP7: collection of images

I have images in folder Images in my windows phone solution. How can i get collection of images in this folder? Build Action of all images is "Content". ...

.Net Remoting - block new connections from same user

Hi all, I have a .Net Remoting server that can accept connections from my remote client app. During the initialization of the client application, it calls ChannelServices.RegisterChannel and then RemotingServices.Connect to create a channel and connect to the server. Every customer has a unique id that we are using for the channel name. ...

Getting IP Address using UPnP InvokeAction not returning anything, help?

Basically, when i use vb.net or c#.net to do this, it works perfectly, but when i use vb6, it doesn't work, in my for loop where the relevant service in the relevant device is captured, here is the code that returns no result... ' serv is properly declared and instantiated by the for loop. Dim xins(0) Dim xouts(0) ...

How to use .Top() with Code First

Is this possible with Code First? I could do this if I only used Entity Framework: var q = from m in context.Products .Top("0") select m; ...

Does Reg-Free COM work with Interop?

What is the consensus here? I have a VB6 app using Interop to utilise .NET assemblies. Could I use Reg-Free COM to 'register' the .NET assemblies? ...

Need to template for worker thread method

Hi, I need to design perfect worker thread method. The method must do the following: 1) extract something from queue (let's say a queue of string) and do something 2) stop and return when class is disposed 3) wait for some event (that queue is not empty) and do not consume cpu 4) run in separate thread Main thread will add string to...

How to get a list of week days in a month?

In this other question it shows how to get all days of a month. I need the same thing, but I only want to list days of week (I want to exclude weekends). How can I get a list of days of a month excluding weekends? ...

Intels Open Source uPNP SDK Has absolutely 0 documentation, why?

basically, here is the address... http://opentools.homeip.net/dev-tools-for-upnp they are the recommended dll's to use for upnp as they implement the standards better then microsofts upnp.dll - but the intels open source upnp tools have absolutely no documentation, not on their website, not on any other website. is there a reason for th...

monitor printing

Hello, Is it possible to monitor all printing acctivities from service installed locally for example save all files which are going to be printed on any printer and save them to file in any format ? Im talking about .net solutions thanks for any answers, bye ...