|
hello j4amieC
i am not clear with the answer i got ..... so i posted it for a better answer.
if it was answered then i could have marked it answered is 'nt it ???
Thanks
Tony
|
|
|
|
|
Then just wait until you get the answer in your original thread.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Your question needs to be more specific - what are you wanting the makefile to do? What have you tried so far and what problems have you encountered?
Is this even a C# project? .NET uses MSBuild rather than make (which is primarily used for C).
It definitely isn't definatley
|
|
|
|
|
hi everyone
I'm using GDI+ concept to draw a multiple sine waves in a panel, It is having more flickering..
if any Forms/window come above/infront of the panel that part of the region is again redrawn.
is there any way to avoid re-drawing of that region by invalidating that region or something.
or Can u suggest me is it good to switching from GDI+ to anyother concept like directx..
|
|
|
|
|
No, that's how GDI works. The programmer is responsible for redrawing any regions that require it.
Simon
|
|
|
|
|
|
Have tried this not working for me. Please check again.
Regards
Andy
VOIP
|
|
|
|
|
Why don't you describe your problem in a little more detail.
|
|
|
|
|
Hi,
I wanna make a phone call from C# code.
How can do this ?
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
1) Get a modem that supports voice calls. Talk to the manufacturer and see if they have an SDK, or public API's.
Or
2) Connect a phone that supports computer automation (A lot of mobiles do I believe). Talk to the manufacturer and see if they have drivers, an SDK, or public API's.
Or
3) VOIP You can either do VOIP computer to computer only, in which case you'll need to put your software on both computers, or you can find a VOIP service provider who will give you the ability to to VOIP from computer to phone line.
http://www.codeproject.com/KB/IP/AsteriskIAXClientWrapper.aspx[^]
VOIP software[^]
http://www.mysipswitch.com/[^]
Good luck.
Simon
|
|
|
|
|
Hey Thanks,
is there anything related to TAPI ?
I have searched lot but TAPI 3 is not supported to .Net ?
Is there anything using TAPI ?
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
see the link
http://www.codeproject.com/KB/IP/devangpro.aspx
Thanks
TONY
|
|
|
|
|
I'm experimenting with windows services, and I'm facing a strange issue. Consider the following code for a really simple, barebone windows service:
public class TimeLoggerService : ServiceBase
{
public TimeLoggerService()
{
InitializeComponent();
_timer = new Timer(10000);
_timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed);
}
protected override void OnStart(string[] args)
{
_timer.Start();
}
protected override void OnStop()
{
_timer.Stop();
}
protected void _timer_Elapsed(object sender, ElapsedEventArgs e)
{
}
}
I compile & install using installutil.exe, and everything works fine. The problem is: when I add a reference to any DLL in my code, the service stops working and I have a FileNotFoundException which tells me that it was impossible to load the DLL. Now:
1 - The service has a LocalSystem account
2 - The DLL is contained in the same folder as the service exe file (the bin/debug folder of my VS2008 project)
3 - This happens with any DLL: I've even written a "dummy" dll with a single method GetNumber() which returns an integer for testing purposes, and by simply adding a call to GetNumber() I have the aforementioned problem
Do you have any suggestions about this issue?
Regards,
Andrea
|
|
|
|
|
what do you mean about dll? is windows library or .net assembly?
if it windows library, then you must copy it to %system% folder because service working directory is not in your application folder, otherwise just add as reference to your service application.
hope it helps
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
Hi, it's actually a .NET assembly so there should not be any problem. It only implements the following code:
namespace TimeLogger
{
public class RandomClass
{
public static int GetRandomNumber()
{
Random rand = new Random();
return rand.Next();
}
}
}
And compiles it as a managed DLL (TestDll.dll). I add a reference to TestDll.dll in my simple service, I add a line which goes: int test = RandomClass.GetRandomNumber() and the service stops working as discussed in my previous message.
What am I missing?
Thanks,
Andrea
|
|
|
|
|
this very strange.
so far, i only have 2 solved problems in service base application:
1. if in start phase, the service take long periods to start, usually there are processes that take time to load. in this case i create a time that run once to trigger that process on timer ticks.
2. if in start phase then stop, there are no process to be done or an error occurred.
your code do not provide any errors. so maybe other member can show you how to solve your problem.
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
Hi Dhaim, I think I've found it! It is simply an installation issue.
In order to install the service, I have configured an external tool in VS2008 with the following parameters:
Title: Install Service
Command: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe
Arguments: $(TargetPath)
Init.directory: $(TargetDir)
The uninstall service is the same but adds /u.
Now, launching this command actually installs the service (I have the familiar installutil log and I can start/stop the service as usual), but the service only works correctly if it does not include any dependency! As soon as I add an assembly, installing like this leads to the issue I noticed, for reasons that I'm not able to explain.
If I simply open a VS prompt and install the service "manually" from the command line, everything is fine and the service works as expected.
Thanks for your interest in my issue!
Regards,
Andrea
|
|
|
|
|
Update to the previous message: by carefully inspecting the installation logs, I noticed that by using $(TargetPath), VS was picking a copy of my service exe from the "obj/Debug" folder, and not from the "bin/Debug" folder, which contains the results of the compilation and all the assemblies that I'm referencing!
I could not spot this earlier because I have a long path to the service exe directory, and I did not notice the fact that it contained "obj" instead of "bin"...
For the moment, I have modified the external tool arguments as:
$(BinDir)$(TargetName)$(TargetExt)
which seems to work, even if I suspect there should be a more direct way to accomplish the same task.
Regards,
Andrea
|
|
|
|
|
|
thanks FYI
that's really useful information for me.
Happy coding.
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
Ok I'm not exactly sure if this is the correct place to ask this, but here goes.
I am using a method call AddControl that takes two strings as arguments. The first argument is the "Class Name" of a control, the second is some sort of license code for the control.
For Example, If I wanted to add a Calender, I wold call the function like this:
object obj = AddControl("MSCAL.Calendar", "")
This would add the Microsoft Calendar control and pass me back a pointer so I could access it's methods and properties.
Ok my question is this, I now extend the Calendar control by creating a new c# Control Library project. I can compile and use this control by dragging it from the toolbox and placing it on a form, but I cannot get it to load using the method above. I tried calling it by it's class name TestControl.TestControl, but that doesn't work. I have tried using the GUID as the Class name, but that doesn't seem to work either.
Any help would be appreciated.
John
|
|
|
|
|
Don't you have to add the .dll to your project?
|
|
|
|
|
Of course I added the .dll file as a reference to my project. In fact I even added the control library project as a reference to my current project.
I can add my control to a windows form and it works just fine. It's trying to add it through the specified interface that I am having difficulty with.
|
|
|
|
|
Ok, I solved my own problem so I'm going to post it here.
Instead of using the Custom Control Library as a separate project, I created the control from within my project. The functionality appear to be the same, other than I can't use the control from yet another project.
I guess you would say this is a work around, but not a solution.
John
|
|
|
|
|
Hi
I am using Visual Studio 2005 and MS Access 2003 to create a Windows application in C#.
I have a DataGridView and I programmatically add a DataGridViewComboBoxColumn to the DataGridView. I populate the ComboBoxes in the DataGridViewComboBoxColumn from a lookup table in the database and bind the DataGridView to a DataTable loaded from another table in the database.
However the correct item in the ComboBox does not get selected. In fact nothing is selected in the ComboBox. Looking at my code it feels to me that I am missing something in my code, but I do not know what.
The doctorTable has a Primary key: Doctor_ID
The patientTable has a Foreign key: Doctor_ID
Using the following code snippets:
private void DataController()
{
try
{
this.LoadData_Controller();
this.FormatDataGridView();
dgvPatients.DataSource = patientTable;
}
catch (Exception ex)
{
throw ex;
}
}
private void FormatDataGridView()
{
try
{
#region Format Doctor column
DataGridViewComboBoxColumn comboboxColumnDoctors = new DataGridViewComboBoxColumn();
comboboxColumnDoctors.DataPropertyName = "Doctor";
comboboxColumnDoctors.HeaderText = "Doctor";
comboboxColumnDoctors.DataSource = doctorTable;
comboboxColumnDoctors.ValueMember = "Doctor_ID";
comboboxColumnDoctors.DisplayMember = "DrName";
dgvPatients.Columns.Insert(3, comboboxColumnDoctors);
#endregion
}
catch (Exception ex)
{
throw ex;
}
}
Any help will be greatly appreciated.
Thanks.
Kobus
|
|
|
|