|
I'm sorry I used the word DLL, but it is LIB that I meant: I had all the dll required, only LIBs were missing
|
|
|
|
|
VC++ .NET installs the MFC version 7.1 files on your computer. These files are 'almost' backwards compatible with the MFC version 4.2 ones, which are installed by VC++ 6.0. You should modify your project settings to include mfc71d.lib and mfcs71d.lib, respectively (Yes, you have typoed there).
The reason that your builds fail might be because you're using a interface definitions that are possibly deprecated (== not supported anymore). The only option is to go through the code and change these to the appropriate, supported values. Because it's a linker error, you should use a feature like "Find in Files..." in the IDE.
If these are, like I believe, GUID identifiers of COM interfaces, you can always use the command __uuidof( interface name ) to return the GUID where needed. This command always gets the correct GUID for the current file version, regardless of what version you're using.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Hello,
I've two versions of crystal reports. v9.1.5000 and v9.2.3300. VS.NET 2003 IDE shows only v9.1.500 in the .NET assembly reference dialog. Is it possible that different versions of same assembly are shown in .NET assembly reference dialog??
Thanks,
Hatim Ali.
|
|
|
|
|
I'm looking for a way to get the PixelFormat of the Screen ( Desktop ). I tried to find it in the MSDN, though I didn't found anything.
In the current project I draw a a few bitmaps quite often, and to speed it up I planning to convert the bitmaps at startup to the current PixelFormat of the screen.
Hope somebody can help me,
Menne
|
|
|
|
|
I made a class in VB.NET which communicates with COM port. For that purposes, I used several API functions. I am convinced that I have regularly called them (I have experience with C++). The problematic piece of code executes in a separate thread.
It happens that the main program terminates unexpectedly, with no message, as I closed it myself. It did not happen until I implemented mentioned class. I use .NET Framework 1.1.
I tried to write in log file information when a function is called and then when it returns, but that did not help – log files were interrupted in the middle of writing string to file.
I suspect that the issue is connected with API, but I do not understand why no exception is thrown. Let me mention that my class has no link with the main program, it starts the thread which monitors COM port events and writes them into internal buffer. The main program, occasionally, reads that buffer.
Is this happening only to me?
|
|
|
|
|
No, I've also experienced various strange effects when using interop when my function declaration didn't fit.
Recheck your interop declarations, they're probably the cause...
Mav
|
|
|
|
|
Can someone help me PLEASE?
I'm trying to save a dynamically created report
BUT I'm lost with SaveAs() method's argument
it keeps saying the the file name is invalid!
How about the 2nd argument? what IS IT ?
Report.SaveAs(reportName As String,CrystalDecisions.Shared.ReportFileFormat)
-----
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
cnReport2.Open()
Dim report As New CrystalReport2
DsReport2.Clear()
daReport2.SelectCommand.CommandText = "SELECT Customer.AnnualProfitRate, Customer.CustomerAccountNbr, Customer.CustomerName, Customer.FacilityAmount, Customer.FacilityPeriod, Customer.FirstDay, Customer.FirstMonth, Customer.FirstYear, Customer.FlatProfitRate, Customer.PrincipalAmount, Customer.ProfitAmount, Customer.RepaymentAmount, Repayment2.FacilityBalance, Repayment2.RepaymentAmount AS Expr1, Repayment2.RepaymentNbr FROM Customer, Repayment2"
daReport2.Fill(DsReport2, "Customer")
CrystalReportViewer1.Visible = True
CrystalReportViewer1.ReportSource = report
report.SetDataSource(DsReport2)
'here i should use report.SaveAs(arg1 ,arg2 )
cnReport2.Close()
End Sub
|
|
|
|
|
|
How can I create an XML document as a result of Visual Basic code compilation?
|
|
|
|
|
What would you like this XML file to contain?
my blog
|
|
|
|
|
do you mean XML comments? do you mean old VB, or VB.NET? which version?
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
I'm looking to write an app that will pull data from a txt, excel, or access file. I would like to have 2 combobox2 pull names from col 1 and Row 1 and return info to a couple of labels depending on the selected value. This would be the equilivent of vLookup in Excel I believe. So...
Size TW THHW THHN
18 - - 14
16 - - 18
14 20 20 25
12 25 25 30
if Combobox 1 was selected as 14 and combo box 2 THHW Label 1 would return a value of 20. Can someone please tell me what this operation is called in VB.NET so that I may lookup how to do this. I can build the table in any of the above formats, .txt, .xls., or .mdb. The idea being that I can update the values eaisily when needed.
Thanks for your time,
Glisson
|
|
|
|
|
I'm resizing multiple 24 bit RGB images from 752x480 to 640x480. When some of the images are resized the interpolation (at least I'm assuming that's the cause) is shifting the image down one pixel; this happens with about 50% of them. Since they're sequential images, which are then saved into a video, this shift causes vertical jitter.
The following is the function I'm using to resize the images. Since I'm only resizing horizontally bilinear is all that's required. I've tried both Bilinear and HighQualityBilinear, neither makes a difference.
public static Image HighQualityResize(Image source, int newWidth, int newHeight, bool useBicubic)<br />
{<br />
System.Drawing.Bitmap retImage = new System.Drawing.Bitmap(newWidth, newHeight, source.PixelFormat);<br />
System.Drawing.Graphics graphic = System.Drawing.Graphics.FromImage(retImage);<br />
<br />
if(useBicubic)<br />
{<br />
graphic.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;<br />
}<br />
else<br />
{<br />
graphic.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Bilinear;<br />
}<br />
<br />
graphic.DrawImage(source, 0,0, retImage.Width, retImage.Height);<br />
return retImage;<br />
}
Am I doing something wrong? Is there something that I need to do in addition to remove jitter? I don't understand why this is happening...
|
|
|
|
|
|
Hi,
I've made this DLL, which is still under development, and I've made an application that uses it. Since I want the program to always use the latest version of the DLL, I've put these two in the same solution and I've put the DLL as a reference in my application project.
But now I want to deploy my application, and I want my DLL to be in the System32 directory. However, I have to change the reference in my application.
Is there an easy way of switching back and forth from a reference to the DLL project to a reference to a .NET dll in the System32 directory?
Thanks!
|
|
|
|
|
It is not recommended to put .NET dlls in System32. If you want to install it in a globally accessible place, then that place is the GAC (global assembly cache). It can be installed into the GAC using the command-line gacutil utility.
Before installing into the GAC, you need to give the application a strong name, to uniquely identify it. The .net sdk help files have all the details on how to do that.
my blog
|
|
|
|
|
I have a written small Compact framework application using c#. I now want to add logging functionality to help debug problems when in production.
What is the common methodology used for C# logging in Compact Framework? Are there opensource classes or in built c# classes I can use for this purpose?
I am thinking of something along the lines of Log4j, but even a very basic logger will do to begin with.
Thank you and regards,
Shibu
|
|
|
|
|
log4net is the equivalent to log4j (google for web page). Otherwise, .NET comes with some basic logging, through the use of System.Diagnostics.TraceListener . I do not know how much of it works with the compact framework.
my blog
|
|
|
|
|
Hello,
Is it possible with this namespace to build a construct, with which i get noticed when a new window or a new tab pane on the Pocket Pc is opened?
thx
regards
pat
|
|
|
|
|
Hello,
As i said in the previous posting I want to write a little code fragment where i get noticed when a new window or a new tab pane is opened on the PocketPc - independent of the application.
I think this is possible withe IMessageFilter-Interface. Can anybody please explain me how i can implement this with the IMessageFilter??
thanks in advance.
regards
pat
|
|
|
|
|
Now i have an other initial stage: Is it possible to get noticed when the user triggers the display of the PocketPc with the stick of the PocketPc??
regards
pat
|
|
|
|
|
Hi, i'm writing a windows service nad it wroked very well in C#, the problem is that it runs unser the LocalSystem acount and i want to run it under a specific User acount in the network, but whenever i chose this option the Service is failed to be installed, i use the "installutil.exe" that comes with the .NET and when i ask to install the service it shows a login dialog that asks for the username and password, and i enter a valid user name and password in the domain ( which is my account!!!) but still it keep fails to install and it rollback! does anyone have a solution for this problem?
|
|
|
|
|
Did you set the account you want your service to use, "log on as service" rights. If not, you'll need to do this manually in the "Local Security Policy" MMC Console.
|
|
|
|
|
thanks for your help, it wasn't actully the problem but your way helped find it, i was it seems i wasn't writing my user name in the way that should be, Domain\UserName.
thx again.
|
|
|
|
|
can i ask another question, ow if i want to change the user name name and password from the code (since i'm bilding a controller for the service) i can stop and start and query the service but i need to have control on changing the User name and Password, so do you know or any other how can i do it in C#?
|
|
|
|
|