Software Development Network Logo
  • SharePoint Products
  • VS Team System
  • Audio and Video
  • Windows Forms
  • Smart Devicet
  • Game Technologies
  • Visual Basic
  • .NET Development
  • Visual Studio
  • IE Development
  • Visual FoxPro
  • SQL Server
  • Windows Vista
  • Visual C#
  • Microsoft ISV

Software Development Network >> imanish11111's Q&A profile

imanish11111

Member List

Sujithf
NickNotYet
mcrisf
gpugelni
REspawn
Leebert
JLarkin
Maxim Masiutin
ttfo
DoS
Bfundy
bminard
Osiris43
CalinMac
a_wuestefeld
RabinLin
Paulyz
Michael Hansen
xlordt
srathee
Only Title

imanish11111's Q&A profile

  • Visual C# Creating C# dll to be called in delphi

    Hi, I'm new to C#. Anyone know how can i create a C# dll which can be called by my delphi program What I did so far was create a new Class Library project. My codes are as below: namespace MyTestDll { public class MainTest { public MainTest() { } public void TestCall() { MessageBox.Show("Method is called"); } } } It was then compiled as MyTestDll.dll In Delphi, i tried using the usual LoadLibrary() and GetProcAddress() function to call TestCall function (in MyTestDll.dll ), but it didn't work. Anyone can help me Thanks! Hello. The problem is that you are trying to call managed code from within unmanaged code and its not going to be qu ...Show All

  • Visual C# Window message without creating a form?

    Hello, Do I need to create a form just so I can have a handle I want my application to listen to window messages but it actually has no forms. It seems a bit wasteful to create a form just to listen for window messages, cant I give my entire application a WndProc function I'd like to use the bare minimum resources to do this. The form will have nothing on it so I think the best way would just be to use CreateWindow() but I'm not sure what else I need to use this, or how to create a WndProc function for it. Is there any basic code examples for creating a window using purley the API Ok, I found all the structures I need at pinvoke.net Why doesnt this work IntPtr hInst = Marshal.GetHINSTANCE(Sy ...Show All

  • SQL Server Problem merging two distinct reports having similar paramters

    Hi All I got two separate reports with similar type of and number of parameters. Let’s name our report so that I can explain it well, Report One; Student Marks Sheet and another Report; Student Remarks Letter. I want to merge these two reports because their parameters are just a copy of one another. I have tried to merge Student Remarks Letter as Sub report of Student Marks sheet but it has not worked. The scenario is so that Student Marks Sheet paper size is A4 in Landscape style and Student Letter Report is A4 in Portrait style and Student Letter Report is to be printed on Headed paper. Having merged the Reports, When viewed via report manager the Student Letter report paper size got changed according to its parent report ...Show All

  • SQL Server SSAS and Excel 2007: Server Side Formatting vs Conditional Formatting

    I have some server formatting on a measure so as to be able to flag the presence of certain numbers at a lower level for the data. ie: I want to flag a cell if any of the DESCENDENTS is greater than a certain value. I have done this and it works in the OWC browser. I can get everthing to work in Excel 2007 except this.. Excel 2007 doesn't seem to support server side formatting. Is this true I don't think I can acheive this using Conditional formatting.. any ideas anyone Server side formatting of OLAP data is supported in Excel 2007: http://blogs.msdn.com/excel/archive/2006/01/05/509918.aspx >> PivotTables X: Server formatting, translations, member properties ... Server formatti ...Show All

  • Visual C# ListView Project.

    Hello All, I'm doing a project like the Event Viewer Form " frmViewMessages " where I have a ListView " lvMessage " that is showing me the list of X items. If you double click an item the detail form " frmMessage " open and display the information in read only Text boxes. In that form " frmMessage " I have two buttons which I intend to move the select Item in the form " frmViewMessages " to the preview or next items. Here is were I have the problem. Could some one tell me how to achieve this part. Here is the code I have so far and is working OK but only allow me to move to just one Item down. For further refernce look the Event Viewer "Application log " in your PC. and d ...Show All

  • Visual C# Directory.Exists SUCKS!

    Alright so I am trying to detect if a directory named "C:\\A&B" exists and low and behold, Directory.Exists will not work. Why you ask Well, when I step through the code it changes the string's value to "C:\\AB". Apparently Microsoft thought it would be a good idea to just remove any abnormal characters. To work around this, I just get the directories last modified time and if it exists it returns something otherwise it throws and exception. How do I just discard this IOException to discard the IOException, use a try catch block:   try {    //your stuff } catch (IOException ex) {    //handle it }   however I am unable to reproduce the problem ...Show All

  • Visual C# How to load images effectively ?

    Hi guys, In my program I want to view thumbnails.. But when the original image size goes up the program starts to freeze.. In my method I directly load the original image to an Image object and then using the GetThumbnail(....) method resize it and pass to another Image object. But it seems this is not an effective way !! Is there any idea, or trick or something else to increase this performance I am open to any advice.. Best regards The documentation for GetThumbnailImage doesn't say how hard the method works on getting a good quality image. Probably as hard as possible. As an alternative, considering using Graphics.DrawImage to create your thumbnail with the Graphics.InterpolationMode set to Low. ...Show All

  • .NET Development Winforms Project Error: Trust Relationship between this workstation and primary domain failed.

    Good day. I created some program(winforms) in C# that connects to certain database (Access, SQL Server, Postgres) by setting the connection string in the app.config file. It's about security, creating users on database and creating/associating their roles and rights. When compiled, it will show a login form, after logging in with the correct login info's, it will show a main security form that will manage users (add users, add/edit rights, roles, view rights and roles). I use Visual Studio 2005. The program uses a class that is derived from the Microsoft Data Application Block. It already contains the classes for Accessing MS Access and SQL Server. I just modified and created another class for Postgres, since it's my primary database as of ...Show All

  • SQL Server Prior Year YTD Calculation

    Hi all, I am having trouble getting a calculated measure 'Prior year YTD' to calculate properly. I have 2 Time hierarchies, here is the MDX for my YTD calculation and my 'Prior Year' Calculations, they both work fine across both time dimensions. YTD Calculation: Create MEMBER CURRENTCUBE .[Time Calculations].[Time Calculations].[YTD] AS Case When [Time].[LCBO Calendar]. currentmember . level . Ordinal =0 then Aggregate ({ [Time Calculations].[current time] } * PeriodsToDate ([Time].[Fiscal Calendar].[Fiscal Year],[Time].[Fiscal Calendar]. CurrentMember )) else Aggregate ({ [Time Calculations].[current time] } * PeriodsToDate ([Time].[LCBO Calendar].[LCBO Year],[Time].[LCBO Calendar]. CurrentMember )) e ...Show All

  • Audio and Video Development Problem in Accessing the element by using their IDs.

    Hello to Everybody, It's really good to be here. Got to know so many things One question is troubling me a lot, it is : Can't we access an element by using their id to set some values to it's attributes through script twice in an application Scenario : I made a markup page and filled some values to some of element's attribute using script on markup page loading. First time, it went well and all values were filled, but when I linked this page from some other page, the values didn't get filled and in some application it gave an error that the element ( whose attribute I tried to access ) is null. The clock in the markup page is 'page' clock. So please tell whether this action of mine is valid or there is some problem with the simulator. Tha ...Show All

  • Architecture Replication of remote objects on remote server.

    Hi, I have a remote object (Singleton) that is designed in C#.net to service the request of users working on single project. We need this object should work exclusively for the given partiyuclar project. Now scenrios is at run time many new projects can be created and we need need separate same type of remote objects (singleton) to created to service the requests comming from users working on these projects. Can we replicate the remote objects Regards, Avi Hi Avi, A pool is very close to a singleton in terms of implementation, you could consider having a pool instead of a singleton. Also of the consumed remoting object is a part of different app po ...Show All

  • .NET Development UpdateBatchSize without dataSets

    Hello, In our project we are using ado.net 2 but we are not using datasets. We use our own value objects. I would like to batch my Create, Update, Deletes to the database. Is there a way I can take advantage of UpdateBatchSize I can't figure out a way to use the dataAdapter without a dataset...is there a way Except: dumping my data into a dataset and then persist the dataset...seems kind of funky... Thanks in advance. Houman The data adapter is specifically designed to bridge between dataset and the connected provider model, so no, you can't really use it without a dataset. You can, however, directly manipulate the connected provider objects (connection, command, reader) to send your upda ...Show All

  • SQL Server How to execute ssis package from stored procedure

    how to excute ssis package from stored procedure and get the parameters back from ssis into the stored procedure. Darren, I need to allow multiple users to run an SSIS package that imports a preformatted user specified spreadsheet to holding tables for further validation and return a few stats about the data. The spreadsheet name, server and db name are parameterised. Below are my notes on what I’ve found to be the available choices and would be interested in any feedback. xp_cmdshell requires CONTROL SERVER permission & sp_OACreate requires membership of the sysadmin fixed server role. However granting sp_OACreate (+ sp_OADestroy etc) execute permission to users (via a user defined role) w ...Show All

  • Windows Forms View Code Button

    If I wanted to make a button that would display code, how would I do that I'd like to not only show my fellow programers my program, but the code behind it via a button in the program. ...Show All

  • .NET Development Profiling and inlining

    Does anyone know of a profiler which will allow me to analyze the performance of jit'ed assemblies taking into account optimization like inlining I've tried the profiler built in to Visual Studio 2005 and I've tried IBM Rational's Quantify. Both of them seem to somehow cause the JIT not to do inlining (it probably doesn't do any optimizations). Consequently when I look over the results and try to identify bottlenecks (in a rather complex and long-running algorithm), the results from both tools are completely skewed by the fact that a few small accessor functions, which are called very frequently are not inlined. Right now I'm left with temporarily manually inlining these functions just for the sake of running the profiler, and th ...Show All

©2008 Software Development Network