«Encountered an improrer argument»
Скриншот: https://yadi.sk/i/2HKfEr_7nWqtx
Удалось разгадать проявление ошибки: «Encountered an improrer argument».
Данная ошибка проявляется в некоторых случаях:
1. Во время графопостроения
2. Во время случайного открытия несоответствующего файла
Пример следующий: у нас есть файл, который является «несоответствующим», но плеер его или может, или вообще не может воспроизвести, в результате чего, возникает данная ошибка.
Фактический результат: проявление самой ошибки «Encountered an improrer argument»
Ожидаемый результат: при открытии несоответствующих файлов, плеер просто должен сказать нам слова «Не удается воспроизвести файл». Вот и все.
Для сравнения: MC-BE vs MPC-HC:
В MPC-BE ошибка присутствует.
В MPC-HC ошибка полностью отсутствует.
Моя просьба (пожелание), просто убрать эту лишнюю ошибку, другими словами — просто избавиться от нее.
Она нам ни к чему.
Motherboards: ASUS P5Q/GIGABYTE EP35C-DS3R, CPU: Core 2 Duo E8300/E8400, Memory: DDR2/DDR3, Video: MSI GTX 465/ASUS EAH5770/GTX 650 Ti, Audio: ASUS Xonar DG 5.1/Creative SB 5.1. VX/X-Fi Xtreme Gamer.
Не разу такого не видел, может это опять только на WinXP?? На любом левом файле, на сколько часто??
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /AMD Radeon R9 16Gb@3200 /Kingston 500Gb M.2 /GTX 1650 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
У нас в коде такой строки нет. Скорее всего сообщение вызывает внешний модуль.
Цитата: Aleksoid1978Не разу такого не видел, может это опять только на WinXP?? На любом левом файле, на сколько часто??
Не только Windows XP. Ошибка проявляется всегда, на любом несоответствующем файле, независимо от операционной системы. Впервые я ее получил на Windows 10.
[merge_posts_bbcode]Добавлено: 2016-01-22 06:59:52[/merge_posts_bbcode]
Цитата: V0ltУ нас в коде такой строки нет. Скорее всего сообщение вызывает внешний модуль.
Почему тогда в MPC-HC ее нет? Странно…
Motherboards: ASUS P5Q/GIGABYTE EP35C-DS3R, CPU: Core 2 Duo E8300/E8400, Memory: DDR2/DDR3, Video: MSI GTX 465/ASUS EAH5770/GTX 650 Ti, Audio: ASUS Xonar DG 5.1/Creative SB 5.1. VX/X-Fi Xtreme Gamer.
Цитата: V0ltУ нас в коде такой строки нет. Скорее всего сообщение вызывает внешний модуль.
Ну конечно нет. Такая ошибка бывает когда пытаемся загрузить несуществующий ресурс. Забыли что бывает когда обновленный .exe положить со старыми языковыми .dll ?? Но это не единичный случай — такая ошибка из-за разных причин может появиться.
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /AMD Radeon R9 16Gb@3200 /Kingston 500Gb M.2 /GTX 1650 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Цитата: Aleksoid1978
Цитата: V0ltУ нас в коде такой строки нет. Скорее всего сообщение вызывает внешний модуль.
Ну конечно нет. Такая ошибка бывает когда пытаемся загрузить несуществующий ресурс. Забыли что бывает когда обновленный .exe положить со старыми языковыми .dll ?? Но это не единичный случай — такая ошибка из-за разных причин может появиться.
Не путайте пожалуйста понятия «Warning» и «Error Occured». Одно дело, когда плеер выдает нам различные предупреждения и совсем другое, когда выскакивают откуда ни возьмись всякие различные критические ошибки.
Это совершенно разные вещи.
В данном случае, вместо этой дурацкой критической ошибки, плеер просто должен нам говорить, что не смог воспроизвести файл. Вот и все, что от него требуется.
Ожидаемый результат: «Не удалось воспроизвести файл».
Motherboards: ASUS P5Q/GIGABYTE EP35C-DS3R, CPU: Core 2 Duo E8300/E8400, Memory: DDR2/DDR3, Video: MSI GTX 465/ASUS EAH5770/GTX 650 Ti, Audio: ASUS Xonar DG 5.1/Creative SB 5.1. VX/X-Fi Xtreme Gamer.
Повторюсь — у себя не разу такого не видел, что еще надо ??
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /AMD Radeon R9 16Gb@3200 /Kingston 500Gb M.2 /GTX 1650 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Цитата: Aleksoid1978Повторюсь — у себя не разу такого не видел, что еще надо ??
Надо, чтобы этой ошибки не было вообще. И чтобы она не возникала когда попало.
Чтобы вам это увидеть, могу предложить вам попробовать выполнить следующее — это по очереди, по одному ярлыку с рабочего стола с помощью метода Drag’n’Drop, перетаскивать в плеер.
Я думаю, что у вас найдется один такой, который покажет вам эту ошибку.
Даже я на уебской Windows 10 и то смог ее получить. На нормальной XP еще проще, вообще элементарно воспроизводится.
Можете даже сделать тестовый билд с созданием лог-файла на рабочем столе. Посмотрите хотя бы что не так.
Motherboards: ASUS P5Q/GIGABYTE EP35C-DS3R, CPU: Core 2 Duo E8300/E8400, Memory: DDR2/DDR3, Video: MSI GTX 465/ASUS EAH5770/GTX 650 Ti, Audio: ASUS Xonar DG 5.1/Creative SB 5.1. VX/X-Fi Xtreme Gamer.
Ни а какую не могу воспроизвести.
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /AMD Radeon R9 16Gb@3200 /Kingston 500Gb M.2 /GTX 1650 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Цитата: Aleksoid1978Ни а какую не могу воспроизвести.
Aleksoid1978
Хорошо, тогда пойдем с вами по другому пути.
Для вас я сделал следующий алгоритм воспроизведения этой ошибки:
1. Откройте панель управления (Пуск -> Панель управления)
2. Найдите в панели управления «Панель управления NVIDIA»
3. Кликните на значок «Панель управления NVIDIA» правой кнопкой мышки
4. Выберете «Создать ярлык на рабочем столе»
5. Откройте с рабочего стола ярлык нашего плеера MPC-BE
6. Используя метод Drag’n’Drop, перетащите ярлык «Панель управления NVIDIA» в плеер MPC-BE
Фактический результат: получите ошибку: «Encountered an improrer argument»
Ожидаемый результат: вместо этой ошибки плеер должен нам сказать «Не удалось воспроизвести файл«.
Скажу вам сразу, что это на все 100% полностью стабильный алгоритм воспроизведения данной ошибки.
Это один из способов воспроизведения данной проклятой ошибки, которой вообще быть не должно.
Motherboards: ASUS P5Q/GIGABYTE EP35C-DS3R, CPU: Core 2 Duo E8300/E8400, Memory: DDR2/DDR3, Video: MSI GTX 465/ASUS EAH5770/GTX 650 Ti, Audio: ASUS Xonar DG 5.1/Creative SB 5.1. VX/X-Fi Xtreme Gamer.
Ок — попробую
А если не получиться, не будет ошибки?? Что тогда делать
[merge_posts_bbcode]Добавлено: 2016-01-27 13:52:54[/merge_posts_bbcode]
Настройки сбрасывать?? с английским языком пробовал??
Так же мне нужен ini файл с твоими настройками.
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /AMD Radeon R9 16Gb@3200 /Kingston 500Gb M.2 /GTX 1650 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Цитата: Aleksoid1978Ок — попробую
А если не получиться, не будет ошибки?? Что тогда делать
[merge_posts_bbcode]Добавлено: 2016-01-27 13:52:54[/merge_posts_bbcode]Настройки сбрасывать?? с английским языком пробовал??
Так же мне нужен ini файл с твоими настройками.
1. Что значит — не получится? Вы попробуйте сначала воспроизвести ее по моему алгоритму.
2. Есть несколько способов воспроизведения, но у вас компьютер настолько упоротый, что скрывает от вас все, сами понимаете и прекрасно это видите, раз не можете воспроизвести даже такую элементарную ошибку.
3. Настройки лично я не сбрасывал, они хранятся у меня в ini-файле. Хотя эта ошибка воспроизводится даже с настройками по умолчанию.
4. Язык программы не влияет, я могу хоть с японским воспроизвести эту ошибку.
Прилагаю:
1. Видеозапись с воспроизведением ошибки на Windows 10: https://yadi.sk/i/q6JxXyyxno3rq
2. Свой INI-файлик с настройками: https://yadi.sk/i/kBnZFG3ino3sx
3. Скриншот с данной ошибкой: https://yadi.sk/i/nJVJXoctno3ti
Motherboards: ASUS P5Q/GIGABYTE EP35C-DS3R, CPU: Core 2 Duo E8300/E8400, Memory: DDR2/DDR3, Video: MSI GTX 465/ASUS EAH5770/GTX 650 Ti, Audio: ASUS Xonar DG 5.1/Creative SB 5.1. VX/X-Fi Xtreme Gamer.
Ну что опять за бред я читаю, чего там мой компьютер скрывает Если бы так было и к меня был такой комп — это было бы очень круто…
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /AMD Radeon R9 16Gb@3200 /Kingston 500Gb M.2 /GTX 1650 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Цитата: Aleksoid1978Ну что опять за бред я читаю, чего там мой компьютер скрывает
Если бы так было и к меня был такой комп — это было бы очень круто…
Я вас не пойму, вы ошибку все-таки смогли у себя воспроизвести, или нет?
Motherboards: ASUS P5Q/GIGABYTE EP35C-DS3R, CPU: Core 2 Duo E8300/E8400, Memory: DDR2/DDR3, Video: MSI GTX 465/ASUS EAH5770/GTX 650 Ti, Audio: ASUS Xonar DG 5.1/Creative SB 5.1. VX/X-Fi Xtreme Gamer.
Это очень сложно — я не дома а пишу с телефона
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /AMD Radeon R9 16Gb@3200 /Kingston 500Gb M.2 /GTX 1650 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Лучший ответ по мнению автора
|
|||||||||||||||
Посмотреть всех экспертов из раздела Технологии
- Remove From My Forums
-
Question
-
On switching on my laptop an error message is occuring «Encountered an Improper Argument» the system will nit allow me to use any functions, I can click on icons but cannot access anything
please can you help?
Thank you
claire
Answers
-
Hi Claire,
I would like to verify when did this issue occurred? Have changed some settings or installed drivers?
If this issue happened recently, please try to perform a
system restore to check the result.
Also, please give us more detail information about this issue.
Thanks,
Vincent Wang
TechNet Community Support-
Marked as answer by
Monday, December 31, 2012 9:18 AM
-
Marked as answer by
By Olga Krovyakova — September, 1, 2022
Sometimes you can see the «Encountered an improper argument» error on HyperCam start or recording start.
If this is your case, then possibly the disabling of microphone in your system will be helpful for you.
However the reasons for this error may be quite different, we recommend to contact our technical support by email support@solveigmm.com in any case.
Please find below several methods on how to disable microphone in your system in Windows 10.
TRY HYPERCAM FREE
Disable the microphone using «Settings»
- Open the Settings app by pressing «Win + I» or the gear icon in the Start menu.
2. Go to «System» → «Sound».
3. On the right, go to the «Input» section, select the microphone in the drop-down list of devices.
4. Click on the link «Device properties».
5. On the next page, use the «Disable» option.
You did it.
There is an alternative method that allows you to disable the microphone using the classic «Sound» applet. Let’s see how to use it.
Disable your microphone using the classic «Sound» applet.
- Right-click the speaker icon in the taskbar area.
2. Select «Sounds» from the context menu.
3. In the «Sound» dialog box, click the «Recording» tab.
4. Locate the microphone device in the list.
5. Right-click it and select «Disable».
The microphone device is now disabled.
TRY HYPERCAM FREE
About the author
Olga Krovyakova is the Technical Support Manager in Solveig Multimedia since 2010.
She is the author of many text and video guidelines of company’s products: Video Splitter, HyperCam, WMP Trimmer Plugin, AVI Trimmer+ and TriMP4.
She works with programs every day and therefore knows very well how they work. Сontact Olga via support@solveigmm.com if you have any questions. She will gladly assist you!
- Remove From My Forums
-
Question
-
I am receiving this message «Encountered an improper argument»
All replies
-
Google «Encountered an improper argument», and you’ll see why that tells us nothing about your problem. You need to be specific.
…Or, of course, go through those 2.4 million results and see if you find a match to your issue.
-
I was doing a search and replace in expression web 4 AP2. As I close the error, more of the same error pops up.
-
It also happens when I click on reports. The keeps re-appearing over 20 times before it stops.
-
What operating system are you using? If it’s Vista or Windows 7 try (and this is a long shot) closing xWeb and start it using right-click ‘Run as administrator’.
Ian Haynes
EW V4 Add-Ins
EW resources, hints and tips -
Windows 7. Opening with administrator did not fix problem.
-
I suspect that your find/replace left an incomplete fragment or some such thing which is causing a problem with running the reports. That’s a WAG (wild arsed guess) though.
Free Expression Web Tutorials
For an Expression Web forum with without the posting issues try
expressionwebforum.com -
so, how do I find an incomplete fragment?
-
Just like you would in Word or Excel. Search for what you replaced and read every instance of it that you find using
Find Next. See if anything’s garbled where the new text is.
The Dalai Lama walks into a pizza shop and asks the guy behind the counter, «Can you make me one with everything?»
-
No clue, but why not try downloading from your production site a clean copy of the site before the find/replace and see if you are still getting the error.
Free Expression Web Tutorials
For an Expression Web forum with without the posting issues try
expressionwebforum.com -
I tried downloading a clean version and tried opening up some of my other sites and I am having the same issue. Seems that something has become corrupt in expression web. Is there a tool to fix expression web?
-
I also brought up expression web 3.0 and I am getting the same error.
-
Just like other programs, run Repair.
The Dalai Lama walks into a pizza shop and asks the guy behind the counter, «Can you make me one with everything?»
-
I’d suggest going through the troubleshooting steps in the FAQ. You may have somehow gotten corruption in your dotnet install since both EW 3 & EW 4 rely heavily on asp.net 4.0 and WPF, uninstalling and installing a clean copy of asp.net 4.0 may fix
your problem.
Free Expression Web Tutorials
For an Expression Web forum with without the posting issues try
expressionwebforum.com -
Here is the current status:
The machine is a windows 7 machine.
uninstall .net framework 4 and reinstall – still errors out.
see if it happens in another web site – still errors out.
Create a new site – still errors out.
I have expression web 3 on this machine, tried expression web 3 – still errors out.
I have expression web 3 on a second machine with XP – the “search” and “search and replace” works fine. So, it something on the windows 7 machine. Any more ideas?
-
If it’s also affecting EW3, then it’s probably an earlier part of dotnet framework. I could be wrong, but I think EW3 didn’t use dotnet 4 (I don’t think it was around when EW3 came out). But I could have the version numbers wrong.
At any rate, you may have to uninstall all parts of the dotnet framework and then—very important—run the dotnet cleanup utility and reinstall from the ground up. It’s a tedious process, but has to be done in a particular way. There are links to instructions
and the dotnet cleanup utility in the Forum FAQ.
The Dalai Lama walks into a pizza shop and asks the guy behind the counter, «Can you make me one with everything?»
-
having the exact same problem. and it just started in the last two days. any luck with this solution?
-
Did you try rolling back to an earlier restore point?
If that doesn’t work, installing the framework is a multi-step process, one version after the other—AFTER you run the cleanup utility.
The Dalai Lama walks into a pizza shop and asks the guy behind the counter, «Can you make me one with everything?»
-
I just uninstalled expression web 4.0 and then re-installed. It then worked. I applied SP2 and it is again failing. Any ideas. I again uninstalled EW4, reinstalled and tried to «find» all, it failed without SP2.
During the first test of «Find» all there were no matches. The error occurs when there is 1 or more matches.
I again un-installed EW4, then tried to run the EW3 that is still on my computer. EW3 has the same problem. Help.
-
Edited by
Friday, September 30, 2011 8:32 PM
-
Edited by
-
It is not possible for two different software programs to fail in the exact same manner at the exact same time. They do not share code, which is why they can be installed independently and run side by side. So the problem is clearly outside of EW. Probably
the dotnet framework.But have you tried rolling back?
Nobody suggested uninstalling and reinstalling EW4. We’ve suggested two other things. If rolling back doesn’t help, then look to the dotnet framework.
The Dalai Lama walks into a pizza shop and asks the guy behind the counter, «Can you make me one with everything?»
-
I have uninstalled back to before I started having a problem it continues to exist. Any other ideas?
-
Did you try going back to a system restore point prior to when you started having problems? (That is not the same as «uninstalling it back to before you had problems».)
Beyond that, you may be reaching the limit of what other EW users, who have no access to your computer and who are not MS technical support, can advise.
-
Edited by
KathyW2
Monday, October 3, 2011 7:53 PM
-
Edited by
-
I just came upon these post regarding the error messages you are getting
(Encountered an Improper Argument). Not sure if you have found a resolution to this problem; but I would like to add my two cents. I have been using EW for several years. I constantly run into this same problem except whenever I cut and paste. So,
if you cut several files, lets say 5, and paste those 5 into a folder, I get 5 messages telling that I’ve «Encountered an Improper Argument«. I don’t have a clue as to why this happens, but I’ve learned to ignore it in hopes that Microsoft
will come up with a fix in their next «SP». I have ignored this without any visible consequence other than it’s irritating as heck.
Robert Pearson
Admin wrote:Hi Peter S,
could you send a screenshot with the error and the Bulk Rename Utility GUI to support, please?
thanks!
I’ve got several screenshots generated, actually a total of 8 images. In part because I work on three 27″ monitors, so in all cases I cropped the images down to the two parts of the scenario. IE Windows explorer and the selected files, and BRU itself. And in part because I accidentally discovered a new scenario, and in fact narrowed down the specific situation where the error occurs.
However, I’m not sure how to get the files to you since I don’t seem to be able to attach files or send private messages. Let me know and I can send the images. I’ve got them in a single zip file already.
In the mean time, here’s the info about the files and the scenarios they are for. Plus the specific cause I found.
The images represent three scenarios:
1) Subset of files selected from a network drive/directory.
1 Initial file selection in explorer
2 BRU after launch from explorer right click, showing the error and the files list but no files selected and no active directory.
3 shows that the error persists after a refresh if a folder isn’t selected first. And the list of files goes away
4 is after selecting the directory and then doing a refresh. The error goes away, and BRU works fine from there, including after further right clicks.
2) The same subset from a local drive.
1 Initial file selection in explorer
2 BRU after launch from explorer right click, no error and files are selected
3) Subset of files from a small (13 files) network directory.
1 Initial file selection in explorer
2 BRU after launch from explorer right click, no error and files are selected
I sent all three because in trying to generate the error for the screenshots, my first attempt was on the smaller directory. Which worked fine. I went back to a larger directory at that point, and the error occurred. So I started generating the screenshots.
After I had all the screenshots generated, I tried to narrow down the file count to determine the cutoff for generating the error. It seems that the error does not occur if there are 30 or fewer files in the network folder that match the most recent criteria, but does if there are 31. Note that it doesn’t matter if there are more than 30 files, only that more than 30 match the filter. As an example, at first I thought the cutoff was at least 33 files, since it worked ok on a directory of that size. But when i started working my way down from 149 files in another directory where the error did occur, I got as low as 33 and it still didn’t work.
That’s when I noticed that the original folder with 33 files was 30 JPG (the current filter) and 3 PNG. While the other was all JPG, so 33 at that point. Once I removed three more files from that folder, so there were only 30, all JPG, and BRU started fine.
In those tests I was only selecting the directory, not specific files. But I retested with a subset of files selected and got the same result. More than 30 files matching the filter on a network drive and the error happens. 30 or less and it doesn’t.
And of course it always works fine from a local drive, regardless of the number of files in the folder.
Thanks again, and let me know about how to get the screen shots to you.
Peter S
What could be wrong with this? It was working fine and then…Improper Argument.
Could it have something to do with deleting records from the array?
for(int i = 0; i < FirstName.GetCount(); i++) { nItem = m_ListCtrl.InsertItem(0, FirstName[i] + L" " + LastName[i]); for(int j = 0; j < 8; j++) { if(Item[numItems].IsEmpty() == FALSE) { nItem = m_ListCtrl.InsertItem(1, L""); m_ListCtrl.SetItemText(nItem, 1, Item[numItems]); m_ListCtrl.SetItemText(nItem, 2, Quantity[numItems]); m_ListCtrl.SetItemText(nItem, 3, Cost[numItems]); m_ListCtrl.SetItemText(nItem, 4, Price[numItems]); m_ListCtrl.SetItemText(nItem, 5, Profits[numItems]); } numItems++; } }
Comments
Solution 1
Your best friend is as in most cases your debugger. But from just looking at the code I would suspect that
nItem = m_ListCtrl.InsertItem(0, FirstName[i] + L" " + LastName[i]);
might return -1 when not successful (for whatever reason) and the following
m_ListCtrl.SetItemText(nItem, 1, Item[numItems]);
will fail because nItem is -1.
Comments
Solution 2
I was trying to read my arrays beyond the amount of data that the arrays had stored. This is what I did to fix this issue:
s7 = (((_wtof(myData[nPos].m_sPrice7) / _wtof(myData[nPos].m_sQty7)) - _wtof(myData[nPos].m_sCost7)) * _wtof(myData[nPos].m_sQty7)); t7.Format(L"%.2f", s7); if(s7 > 0) dlg.Profits.Add(t7); else dlg.Profits.Add(L"0");
I added the else statement to fix my problem, it works fine again.
Comments
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
Top Experts | |
Last 24hrs | This month |
CodeProject,
20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8
+1 (416) 849-8900
What could be wrong with this? It was working fine and then…Improper Argument.
Could it have something to do with deleting records from the array?
for(int i = 0; i < FirstName.GetCount(); i++) { nItem = m_ListCtrl.InsertItem(0, FirstName[i] + L" " + LastName[i]); for(int j = 0; j < 8; j++) { if(Item[numItems].IsEmpty() == FALSE) { nItem = m_ListCtrl.InsertItem(1, L""); m_ListCtrl.SetItemText(nItem, 1, Item[numItems]); m_ListCtrl.SetItemText(nItem, 2, Quantity[numItems]); m_ListCtrl.SetItemText(nItem, 3, Cost[numItems]); m_ListCtrl.SetItemText(nItem, 4, Price[numItems]); m_ListCtrl.SetItemText(nItem, 5, Profits[numItems]); } numItems++; } }
Comments
Solution 1
Your best friend is as in most cases your debugger. But from just looking at the code I would suspect that
nItem = m_ListCtrl.InsertItem(0, FirstName[i] + L" " + LastName[i]);
might return -1 when not successful (for whatever reason) and the following
m_ListCtrl.SetItemText(nItem, 1, Item[numItems]);
will fail because nItem is -1.
Comments
Solution 2
I was trying to read my arrays beyond the amount of data that the arrays had stored. This is what I did to fix this issue:
s7 = (((_wtof(myData[nPos].m_sPrice7) / _wtof(myData[nPos].m_sQty7)) - _wtof(myData[nPos].m_sCost7)) * _wtof(myData[nPos].m_sQty7)); t7.Format(L"%.2f", s7); if(s7 > 0) dlg.Profits.Add(t7); else dlg.Profits.Add(L"0");
I added the else statement to fix my problem, it works fine again.
Comments
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
Top Experts | |
Last 24hrs | This month |
CodeProject,
20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8
+1 (416) 849-8900